mirror of
https://github.com/wassname/react-webpack-template.git
synced 2026-07-04 14:31:35 +08:00
Added base webpack configuration and needed shellscripts.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
require('normalize.css');
|
||||
require('styles/App.css');
|
||||
|
||||
import React from 'react/addons';
|
||||
|
||||
class AppComponent extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<div>
|
||||
Content
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
AppComponent.defaultProps = {
|
||||
};
|
||||
|
||||
export default AppComponent;
|
||||
@@ -0,0 +1,5 @@
|
||||
import React from 'react';
|
||||
import App from './Main';
|
||||
|
||||
// Render the main component into the dom
|
||||
React.render(<App />, document.getElementById('app'));
|
||||
Reference in New Issue
Block a user