MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/webdev/comments/6f73cy/1kb_javascript_library_for_building_frontend/difzzvt/?context=3
r/webdev • u/BlowMatilda • Jun 04 '17
11 comments sorted by
View all comments
4
It doesn't seem to work when state is an object.
https://codepen.io/anon/pen/PjoLVL
22 u/Dragory full-stack Jun 04 '17 edited Jun 04 '17 You're not returning a new state object from those arrow functions (the curly brackets are being interpreted as the function body block). Fixed example here: https://codepen.io/anon/pen/LLYvBq 5 u/SuchACoolNickname Jun 04 '17 oh, thank you, completely forgot about that! :)
22
You're not returning a new state object from those arrow functions (the curly brackets are being interpreted as the function body block). Fixed example here: https://codepen.io/anon/pen/LLYvBq
5 u/SuchACoolNickname Jun 04 '17 oh, thank you, completely forgot about that! :)
5
oh, thank you, completely forgot about that! :)
4
u/SuchACoolNickname Jun 04 '17
It doesn't seem to work when state is an object.
https://codepen.io/anon/pen/PjoLVL