Skip to content

Commit becae30

Browse files
mode demo files to own folder
1 parent dde354a commit becae30

File tree

7 files changed

+6
-6
lines changed

7 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# OnOff switch button
33

44
React component, on-off sliding button to keep track of a user choice or state.
5-
5+
66
![React on off switch button](https://snag.gy/j1rx9d.jpg)
77

88
npm install react-onoff-switch
@@ -17,10 +17,10 @@ React component, on-off sliding button to keep track of a user choice or state.
1717
<OnOff onChange={(value) => console.log('New value is:', value)}/>,
1818
document.getElementById('app')
1919
);
20-
20+
2121
### Demo
2222

23-
Simple [demo example here](https://rawgit.com/SergioCrisostomo/react-onoff-switch/master/demo.html).
23+
Simple [demo example here](https://rawgit.com/SergioCrisostomo/react-onoff-switch/master/demo/demo.html).
2424

2525
### props
2626

File renamed without changes.
File renamed without changes.

demo.js renamed to demo/demo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
import ReactDOM from 'react-dom';
3-
import OnOff from './index.js'
3+
import OnOff from '../index.js'
44

55
const stateDiv = document.getElementById('state');
66
const reporter = who => val => stateDiv.innerHTML = `${who} changed value to ${val}!`;
File renamed without changes.
File renamed without changes.

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ var path = require('path');
22
var webpack = require('webpack');
33

44
module.exports = {
5-
entry: './demo.js',
6-
output: { path: __dirname, filename: 'compiled.js' },
5+
entry: './demo/demo.js',
6+
output: { path: __dirname, filename: './demo/compiled.js' },
77
module: {
88
loaders: [
99
{

0 commit comments

Comments
 (0)