State Handling Architecture
Before I can set you loose on the world, we should talk about managing state. It’s where most engineers shoot themselves in the foot.
I’ve shot myself in the foot a lot. Life gets harder and harder until one day you want to throw all your code away and embark on The Rewrite. That’s how projects die.
The Rewrite killed Netscape. You probably don’t even remember Netscape :wink:
Let’s save you from that.
Basic architecture
We’re going to use a unidirectional dataflow architecture inspired by Flux:
- The Main Component –
App
– is the repository of truth - Child components react to user events
- They
Access this course and 1400+ top-rated courses and projects.