DEV Community

Discussion on: React Tips & Patterns

Collapse
 
prashanthwagle profile image
Prashanth P Wagle • Edited

Great Tips!.
IMO, Tip #1 can be improved futher by using custom hooks. If we have stateful logic that are to be shared, it is better to use a custom hook.

Collapse
 
zaklaughton profile image
Zak Laughton

Came here to say this! Dan Abramov added an update to a blog he wrote recommending this "container" style here, essentially saying that he thinks hooks are now a better solution.

Collapse
 
mychi_darko profile image
Michael Darko

Thanks for the info😊