DEV Community

Discussion on: 10 Things NOT To Do When Building React Applications

Collapse
 
petyosi profile image
Petyo Ivanov

re: 6 - syncing props with state is somewhat of an antipattern (but sometimes, unavoidable). React has a special static method which makes you feel bad when using it ;):

reactjs.org/docs/react-component.h...

Cheers!