DEV Community

loading...

Discussion on: Is React a dev or prod npm dependency?

Collapse
tobiassn profile image
Tobias SN • Edited

It’s a normal dependency. It’s only, and always, used at runtime. The react package is not involved when compiling, I believe @babel/preset-react is responsible for that.