Skip to content

Commit

Permalink
Switch from old jsx script to webpack
Browse files Browse the repository at this point in the history
The amount of extra files says something...
  • Loading branch information
chenglou committed Apr 18, 2016
1 parent a66e455 commit eab37cb
Show file tree
Hide file tree
Showing 12 changed files with 147 additions and 20,256 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
.DS_Store
bower_components
node_modules
build
4 changes: 2 additions & 2 deletions bower.json
@@ -1,9 +1,9 @@
{
"name": "react-spinner",
"version": "0.2.3",
"version": "0.2.4",
"author": "chenglou <chenglou92@gmail.com>",
"description": "Zero configuration loading spinner.",
"main": "index.js",
"main": "build/index.js",
"ignore": [
"**/.*",
"node_modules",
Expand Down
19 changes: 19 additions & 0 deletions example/component.jsx
@@ -0,0 +1,19 @@
import React from 'react';
import Spinner from '../';

const App = React.createClass({
render: function() {
const style = {
height: 50,
width: 50,
backgroundColor: 'black'
};
return (
<div style={style}>
<Spinner />
</div>
);
}
});

export default App;
2 changes: 1 addition & 1 deletion example/index.html
Expand Up @@ -7,6 +7,6 @@
</head>
<body>
<div id="content"></div>
<script src="out.js"></script>
<script src="./bundle.js"></script>
</body>
</html>
22 changes: 4 additions & 18 deletions example/index.jsx
@@ -1,19 +1,5 @@
var React = require('react');
var Spinner = require('../');
import React from 'react';
import ReactDOM from 'react-dom';
import App from './component';

var App = React.createClass({
render: function() {
var style = {
height: 50,
width: 50,
backgroundColor: 'black'
};
return (
<div style={style}>
<Spinner />
</div>
);
}
});

React.render(<App />, document.querySelector('#content'));
ReactDOM.render(<App />, document.querySelector('#content'));

0 comments on commit eab37cb

Please sign in to comment.