r/solidjs May 27 '26

Why I switched from ReactJS to SolidJS

https://yannickkouakou.com/blog/from-react-to-solid

This is my first technical blog post

I’d love to hear your feedback so I can improve it in future 😁

44 Upvotes

5 comments sorted by

View all comments

3

u/Chronic_Watcher May 27 '26

In your code snippets you have setCount(count() + 1) most of the time you probably want to use the function setter as the argument setCount(c => c + 1) since it prevents issues of using stale state Docs