DEV Community

Discussion on: React JS: Stateful vs Stateless Components

Collapse
 
conermurphy profile image
Coner Murphy

My current process for deciding if an component needs to be stateful or stateless is to define it as a stateless component and then if the need for it to store data arrises, I then convert it into a stateful component. This way only the components that need state are given state.