Settings

Theme

Ask HN: Why couldn't react remain simple?

3 points by lifeplusplus a year ago · 0 comments · 1 min read

Reader

In my opinion react has been downhill since hooks.. if I could recreate react I'd disallow passing functions or components into props or children.

I'd definitely disable use context

I'd provide simple global state..

For any component if you wanted know what data it gets there would be only one source, props.

Lifecycle methods will be simple: before, during, after..

Probably eliminate function syntax and go back to class syntax which is cleaner...

Discourage typescript but allow prototypes for better autocompletion

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection