check react version
snippet in javascript

get react version

user6161

// To view which version of React is/was used for a particular app, type in the below in commandline/terminal.
npm view react version
npm view react-native version

check react version

user1376

npm view react version
npm view react-script version 

how to check reactjs version in command prompt

user1801

npm list react

find react version

user9628

const REACT_VERSION = React.version;

ReactDOM.render(
  <div>React version: {REACT_VERSION}</div>,
  document.getElementById('root')
);
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react-dom.min.js"></script>

<div id="root"></div>