Discussion

Ask HN: Why couldn't react remain simple?

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

3 points lifeplusplus 1 year ago 0 comments

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton