Skip to content

Commit

Permalink
change of the basic template to include App right from the start
Browse files Browse the repository at this point in the history
  • Loading branch information
renaudaf committed Dec 23, 2020
1 parent 00814d5 commit 520321e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
Empty file removed src/components/.gitkeep
Empty file.
9 changes: 9 additions & 0 deletions src/components/app.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from "react";

function App() {
return (
<h1>This is my react boilerplate</h1>
);
}

export default App;
12 changes: 2 additions & 10 deletions src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,9 @@ import React from 'react';
import ReactDOM from 'react-dom';

import '../assets/stylesheets/application.scss';

const Hello = ({ name }) => {
return (
<div>
Hello,
{name}
</div>
);
};
import App from "./components/app";

const root = document.getElementById('root');
if (root) {
ReactDOM.render(<Hello name="World" />, root);
ReactDOM.render(<App />, root);
}

0 comments on commit 520321e

Please sign in to comment.