diff options
author | Nick Van Doorn <vandoorn.nick@gmail.com> | 2017-05-12 16:48:14 -0700 |
---|---|---|
committer | Nick Van Doorn <vandoorn.nick@gmail.com> | 2017-05-12 16:48:14 -0700 |
commit | 8c0f25250295d6795e190c3a023cf07c04837a1e (patch) | |
tree | 21dff83a79730f6f0c253358766e9b82ecd6ed9a | |
parent | de9ae8b949d2f3d111427923a1838cba0a503b61 (diff) |
Add example React component
This will likely expand to show off some of the nicer features of this
webpack config
-rw-r--r-- | src/index.css.js | 1 | ||||
-rw-r--r-- | src/index.js | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/index.css.js b/src/index.css.js new file mode 100644 index 0000000..948fbcd --- /dev/null +++ b/src/index.css.js @@ -0,0 +1 @@ +export const app = { fontSize: '40px' } diff --git a/src/index.js b/src/index.js new file mode 100644 index 0000000..bd3d805 --- /dev/null +++ b/src/index.js @@ -0,0 +1,8 @@ +import React from 'react' +import ReactDOM from 'react-dom' + +import { app } from './index.css' + +const App = p => <div className={app}>{p.text}</div> + +ReactDOM.render(<App text='hello world' />, document.getElementById('root')) |