Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up
Fetching contributors…
| import React from 'react'; | |
| import {render} from 'react-dom'; | |
| import App from './App'; | |
| const appElement = (<App />); | |
| // In a browser environment, render instead of exporting | |
| if (typeof window !== 'undefined') { | |
| render(appElement, document.getElementById('root')); | |
| } | |
| export default appElement; |