DEV Community

Discussion on: Clean Architecture: Applying with React

Collapse
 
bwca profile image
Volodymyr Yepishev

It would be actually interesting to see this clean architecture shown in a monorepo where the clean parts reside in a library and are re-used by two different frameworks, i.e. create-react-app and Angular.

Collapse
 
rubemfsv profile image
Rubem Vasconcelos

Very interesting point! It's already in my plans. hehe
Thank you for the contribution.

Collapse
 
delacernamarimar profile image
Marimar Dela Cerna

I agree and waiting.

Collapse
 
jackmellis profile image
Jack

This is something I'm always keen on. I hate it when libraries for what could be framework-agnostic tools are tightly coupled to the framework.
"If you want to fetch the price of milk install this library and call useMilkPrice()"
What if I want to fetch the price of milk outside of a react context.
This has also been a big annoyance when moving between frameworks. A library that could easily be applied to a vue application has to be abandoned because it's tightly coupled to react.
I always prefer a core library and then a framework-specific wrapper or adapter library.
Rant over.