3 ms·
> I do not like spending time on things such as choosing which router to use, Build the app in such a way that you can change it. Or just use react-router. >
by antihero 6y ago
> I do not like spending time on things such as choosing which router to use,
Build the app in such a way that you can change it. Or just use react-router.
> wether we should write class-based or functional components
Functional
> Or wether to use dispatchToProps or hooks.
Hooks.
But I see what you mean, React's idiomatic patterns do change. Thing is, if you have a class based component you can still use it in amongst your functional hook-based ones. It's still compatible.