npm install react

Shell
# Install locally to project folder
npm install react

# Install globally to system
npm install react -g

# You will also need react-dom to do anything worthwhile ;)
Source

Also in Shell: