Skip to content

Ask HN: Why couldn't react remain simple?

3 pointslifeplusplusdiscuss
On HN

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

Comments

No comments yet.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.