Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 586 Bytes

add_react_and_react_router.md

File metadata and controls

28 lines (16 loc) · 586 Bytes

Add React and React Router

Starting with Meteor 1.3, we install React packages using npm.

meteor npm install react react-dom --save

Add a render target

/imports/startup/client/main.html

<body>
  <div id="react-root"></div>
</body>

This will be our "render target" for React components.

Create a routes file

Import the routes file