You can use React.version to get the version.
const REACT_VERSION = React.version;ReactDOM.render(<div>{`React version: ${REACT_VERSION}`}</div>,document.getElementById("app"));
You can use React.version to get the version.
const REACT_VERSION = React.version;ReactDOM.render(<div>{`React version: ${REACT_VERSION}`}</div>,document.getElementById("app"));
Every sample from this answer, open in the IDE. Edit it, run it, break it.
Example1.jsxjsx6 linesrunnableThe IDE mounts the first sample that compiles and gives you a live preview next to it.
How well did you remember this?