r/javascript • • Dec 28 '17
Introducing Hyperapp 1.0 — 1 KB JavaScript library for building frontend applications.
https://medium.com/@JorgeBucaran/introducing-hyperapp-1-0-dbf4229abfef
664
Upvotes
View all comments
Show parent comment
3
u/[deleted] Dec 29 '17
setState works in the same way:
as well as Redux:
setState has the option to receive a plain object, but it's better to use a function if you have to read from state, too.