Discussion

Ask HN: Can someone explain me React Hooks?

I find React hooks complex and hard to gasp. They feel too smart and over-engineered. When I write JavaScript I tend to think of simple functions with normal programming constructs. I'd rather use basic variables (on instances, localStorage, URL, etc..) rather than a weird beast like `useState(0)`. What is going on here? Am I stupid or something?
1 points tipiirai 4 years ago 2 comments

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton