Skip to main content
InterviewHubPRO
Section Overview
Q68

Question 68 of 407

General

17%
React Core & Hooks (407 Qs)•General

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

mid LevelCode ExamplereactGeneral

You can use React.version to get the version.

jsx
const REACT_VERSION = React.version;

ReactDOM.render(
<div>{`React version: ${REACT_VERSION}`}</div>,
document.getElementById("app")
);