react 17.1 code example Example 1: react 17 npm install react@17.0.0 react-dom@17.0.0 Example 2: react 17 yarn add react@17.0.0 react-dom@17.0.0