19 ms·
The snippets in the article are not using React with hooks. I imagine it would be more similar to your example if the snippets used purescript-react-basic-hooks
by evanrelf 6y ago
The snippets in the article are not using React with hooks. I imagine it would be more similar to your example if the snippets used purescript-react-basic-hooks[1]
[1]: https://github.com/spicydonuts/purescript-react-basic-hooks https://github.com/spicydonuts/purescript-react-basic-hooks
- Cthulhu_ 6y agoNo, they're using more 'old fashioned' class-based components with state; function-based components using hooks is the modern way of writing React. Less boilerplate, for one.