DEV Community

Discussion on: Separating front end styling and development

Collapse
 
jeastham1993 profile image
James Eastham

Thanks for the response Guido. I'm currently in the middle of a React training course and that seems to allude towards keeping a small number of stateful components that control logic and having a lot more stateless dumb/presentation components.

I think that fits with what you're saying if I've understood correctly?

Collapse
 
guidovizoso profile image
Guido Vizoso

You got it perfectly! I have some "smart" components (with state, GraphQL queries, logic, etc) that act as a motherboard and a bunch of stateless components that would be switches and led lights which the user would interact with to control the motherboard.

Thread Thread
 
jeastham1993 profile image
James Eastham

Great analogy! Thanks for the input Guido, I really appreciate it.