generator-premiere-mern-stack
Version:
A fully function MERN stack generator running on the latest and greatest thats easy to get started with
21 lines (15 loc) • 501 B
JSX
/* Here we are binding React (and the client side routing via react-router-dom) to the HTML file to an
* element with an ID of `root` and setting up
*/
import React from "react";
import ReactDOM from "react-dom";
import { BrowserRouter } from 'react-router-dom'
import "./styles/reset.css";
/* App is the entry point to the React code.*/
import Routes from './Routes/index.jsx';
ReactDOM.render(
<BrowserRouter basename="/">
<Routes />
</BrowserRouter>
,document.getElementById("root")
);