DEV Community

Discussion on: Pure Functions in React

Collapse
 
vsonmez profile image
Volkan Sönmez

In this case, would it be a correct approach to separate the elements that will make up our screen down to the smallest pieces while developing applications with react?

For example, consider the page header section. There is a page title, a subtitle, three links.

The components we need to create should be title, subtitle, link and a header component that includes them.

Collapse
 
keevcodes profile image
Andrew McKeever

I would say this could be left up to personal taste, but Atomic design takes this exact approach