+1 vote
in ReactJS by

How can we find the version of React at runtime in the browser?

1 Answer

0 votes
by

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')
)

Related questions

0 votes
asked Dec 22, 2023 in ReactJS by john ganales
0 votes
asked Aug 11, 2022 in GoLang by SakshiSharma
...