Initial commit

This commit is contained in:
Ali Al Dallal
2015-06-15 09:21:19 -04:00
committed by lukasmartinelli
commit d5c252ee54
15 changed files with 513 additions and 0 deletions

16
src/app.jsx Normal file
View File

@@ -0,0 +1,16 @@
import 'bootstrap/dist/css/bootstrap.min.css';
import styles from './index.scss';
import React from 'react';
export default class App extends React.Component {
render() {
return (
<div>
<h1>It Works!</h1>
<p>This React project just works including <span className={styles.blueBg}>module</span> local styles.</p>
<p>Global bootstrap css import works too as you can see on the following button.</p>
<p><a className="btn btn-primary btn-lg">Enjoy!</a></p>
</div>
)
}
}

5
src/index.jsx Normal file
View File

@@ -0,0 +1,5 @@
import React from 'react';
import { render } from 'react-dom';
import App from './app.jsx';
render(<App/>, document.querySelector("#app"));

4
src/index.scss Normal file
View File

@@ -0,0 +1,4 @@
.blueBg {
background-color: red;
color: white;
}

13
src/template.html Normal file
View File

@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title><%= htmlWebpackPlugin.options.title %></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div class="container">
<div id="app">Loading...</div>
</div>
</body>
</html>