4 ms·
Meh. The most important thing about React is you have to think like React wants you to. It's a very pattern-oriented type of development I haven't seen much of
by ng12 4y ago
Meh. The most important thing about React is you have to think like React wants you to. It's a very pattern-oriented type of development I haven't seen much of elsewhere.
Most of the footguns listed in this article are things you obviously shouldn't want to do because they're not React-y.
- theteapot 4y agoSome others would describe it as idiom-orientated.
- ng12 4y agoThanks! That's probably a better phrasing.
- DangitBobby 4y agoForms are absolutely a problem, though. Forms not being "reacty" isn't going to get you out of needing them.
- hobofan 4y agoAs react is only the core library and not a batteries-included framework, you will often find additional libraries that help with certain use-cases. E.g. if you are dealing with forms a lot, I would strongly suggest using react-hook-form or formik.
- mattigames 4y agoIf it's not batteries included if should not require people to add a huge amount of overhead to their projects to use it, stuff like JSX or create-react-app
- hobofan 4y ago> create-react-app That's neither required, nor being recommended by the wider community anymore. > JSX JSX on the other hand I feel like is something that is essential to React (yes, I know that some people disagree), and one of the few things it should provide/require, as it forms a cornerstone of it's UX. Getting things set up to understand JSX/TSX has been smoothed out a lot now, and hasn't been an issue in any greenfield project I have set up in the last 2-3 years.
- DangitBobby 4y agoI do use react-hook-form! It helps a lot.