3 ms·
Functional Components are not functional in the sense of functional programming. They are shared mutable state.
by fire_lake 2y ago
Functional Components are not functional in the sense of functional programming. They are shared mutable state.
- patates 2y agoFunction-based components. They have vaguely functional aspects but they are not functional indeed. I think most people say functional because "function-based" is too long.
- lastdong 2y agoIf I recall correctly we have stateless functional components (not managing any state). Functional in React should mean immutable state.