Sam Sam - 4 months ago 35
React JSX Question

React 0.14.7 vs 15.4.0

What is the difference between React 0.14.7 and 15.4.0?

I'm working on a React app that the previous developer started. In package.json I see that the app is set to using React ^0.14.7 but when I just put the quotes, Visual Studio is showing 15.4.0 as the latest stable version. This seems like a really big difference in version numbers. I feel like I'm missing something here.

A related question: how do I check the actual version being used? I went into npm_modules folder and checked React package but couldn't really tell the version number.

Here's the pagkage.json file for React module under npm_modules:

enter image description here


Check out the release notes to get a feel for the breaking changes. If the code is still in development, it would probably make sense to attempt the upgrades. If it's in production currently, it could still be beneficial, but don't just blindly update it. Carefully read the notes. It would be wise to do partial updates gearing up to the latest stable release.

React release notes beginning with 0.14.7.

This article explains the 0.15.0 bump.

To your second question, find the package.json file in the node_modules/react directory. The 2nd line should indicate the version.