builds webpack config, introduces babel, modifies ESLint to expect 4 spaces
This commit is contained in:
11
src/client/index.html
Normal file
11
src/client/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<base href="/">
|
||||
<title>Payload</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
</body>
|
||||
</html>
|
||||
15
src/client/index.js
Normal file
15
src/client/index.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import React from 'react';
|
||||
import { render } from 'react-dom';
|
||||
|
||||
import './testStyles.scss';
|
||||
|
||||
const App = () => {
|
||||
return (
|
||||
<div>
|
||||
<h3>Payload</h3>
|
||||
<p>Yay</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
render(<App />, document.getElementById('app'));
|
||||
3
src/client/testStyles.scss
Normal file
3
src/client/testStyles.scss
Normal file
@@ -0,0 +1,3 @@
|
||||
body {
|
||||
background: rgba(purple, .8);
|
||||
}
|
||||
Reference in New Issue
Block a user