3 ms·
You can do both. Hooks are easy to learn. The class components could be lower level (page/dom components), while the ones using hooks would be functional, compo
by proc0 5y ago
You can do both. Hooks are easy to learn. The class components could be lower level (page/dom components), while the ones using hooks would be functional, composable components on the edge of the tree (last things to render).