babel-react-rollup-starter
Version:
A simple boilerplate for web apps with React, Babel, and Rollup.
13 lines (9 loc) • 349 B
JavaScript
// Import React and React-dom.
import React from 'react'
import ReactDOM from 'react-dom'
// Import the components.
import { DummyComponent } from './components/dummy-component.jsx'
// Define the root element.
const root = document.querySelector('main')
// Append the DummyComponent to the root element.
ReactDOM.render(<DummyComponent />, root)