You can use
to get the version.React.version
const REACT_VERSION = React.version;ReactDOM.render(<div>{`React version: ${REACT_VERSION}`}</div>,document.getElementById("app"));
You can use
to get the version.React.version
const REACT_VERSION = React.version;ReactDOM.render(<div>{`React version: ${REACT_VERSION}`}</div>,document.getElementById("app"));
How well did you remember this?