8000 update · vuejs/rfcs@05f4912 · GitHub
[go: up one dir, main page]

Skip to content

Commit 05f4912

Browse files
committed
update
1 parent acf8055 commit 05f4912

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

active-rfcs/0000-class-api.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,10 @@ For users who already have a preference, it is not really an issue. The real iss
449449

450450
One way to deal with it is providing examples for both syntaxes in the new docs and allow switching between them. This allows users to pick a preferred syntax during the learning process.
451451

452+
## Isn't React Moving Away from Classes?
453+
454+
Yes, but that's because classes isn't as nicely a fit for React's component conceptual model, especially with hooks being the alternative. Classes aren't inherently bad, and Vue's component conceptual model (with mutable state) maps better to a class than a React component. We also have plans to offer a mechanism with hooks-like logic composition capabilities that works in both class and object-based components, but that will be in a separate future RFC.
455+
452456
# Alternatives
453457

454458
## Options via Decorator

0 commit comments

Comments
 (0)
0