re: Class Components vs. Stateless Functional Components VIEW POST

re: If your function takes inputs then it's not stateless, technically. Maybe you mean "side-effect free" in which case I think you can make class comp...

In the context of React “Stateless Functional Component (SFC)” is actually the correct term. There is a documented difference between properties and state. While all components in React may take input, that input is always referred to as properties. State is specifically data that a component manages internally. SFCs are thus named due to their inability to possess/manage state.

Technically, one could return a closure and manage state in a SFC, but that would be unusual.

code of conduct - report abuse