3 ms·
the basics are: - atom is a compare and swap data structure, its lets you mutate state - in your atom you hold a hashmap, deeply nested, that contains ALL sta
by nathants 4y ago
the basics are:
- atom is a compare and swap data structure, its lets you mutate state
- in your atom you hold a hashmap, deeply nested, that contains ALL state describing your app
- your react components reference that state with: (:some-hashmap-key @state)
- every time you update that state, any components depending on it rerender
- thats it. it’s literally the best!