4 ms·
A few months ago I need to build a small web app and decided to have a look at React. Pre Hooks, I had used React a lot so I thought it will be straightforward.
by nasir 4y ago
A few months ago I need to build a small web app and decided to have a look at React. Pre Hooks, I had used React a lot so I thought it will be straightforward. Then I stumbled upon all these new paradigms wrapped in hooks to make an API call. Confused, I gave up and switched to classic Flask with template engines.
Seeing this reminds of the time I was spending to understand these concept and use them. Quite funny that the whole React ecosystem is turning into a classic server rendered mechanism with core functionalities being deprecated. I'm glad I stayed away.
- wetpaws 4y agoJust don't use hooks. Why people think they are obliged to do the switch eludes me, feels like some kind of cargo cult.
- continuational 4y agoIt's pretty clear that the class based API is a legacy thing in React by now. You can still use it, but the framework has moved on.
- wetpaws 4y agoThis is frankly framework's problem, not mine.
- liendolucas 4y agoSame here. Flask with HTMX and bit of HyperScript (if you dare) has become very pleasant so far. I wished I had discovered it before. I do not know for sure if it can fulfill complex apps, but this also invites to rethink an app in terms of the original web instead, exchange HTML, not JSON + all the transformations that need to take place in the FE. I found the HTMX memes hilarious and very true actually: https://htmx.org/essays/ https://htmx.org/essays/ Maybe is time to rediscover simpler tools and frameworks.