Do you add react in your dependencies or devDependencies inside package.json and explain why you choose that?
My thoughts
dependencies
It can be here since its part of the application which gets shipped. Or you can say its used by the application/library at runtime.
devDependencies
It is still part of the dependency but its needed during release/compile time but for consumers they don't need it since bundled code already has that in it.






I use dependencies for any package I import in the app code.
I use devDependencies for any package I don’t import in the app code (test utils, module bundlers, linters, etc.)