diff --git a/react-tab-selector/src/App.js b/react-tab-selector/src/App.js
index 6602d71..0d75344 100644
--- a/react-tab-selector/src/App.js
+++ b/react-tab-selector/src/App.js
@@ -8,7 +8,6 @@ class App extends Component {
this.state = {
selected: this.props.selected
};
-
this.handleOnClick = this.handleOnClick.bind(this);
}
diff --git a/react-tab-selector/src/data.js b/react-tab-selector/src/data.js
new file mode 100644
index 0000000..72cb30f
--- /dev/null
+++ b/react-tab-selector/src/data.js
@@ -0,0 +1,9 @@
+const Data = [
+ {name: 'Red', value: 'red'},
+ {name: 'Blue', value: 'blue'},
+ {name: 'Yellow', value: 'yellow'},
+ {name: 'Green', value: 'green'},
+ {name: 'White', value: 'white'}
+];
+
+export { Data };
diff --git a/react-tab-selector/src/index.js b/react-tab-selector/src/index.js
index a0e34f6..beadcd9 100644
--- a/react-tab-selector/src/index.js
+++ b/react-tab-selector/src/index.js
@@ -1,16 +1,9 @@
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
-
-var data = [
- {name: 'Red', value: 'red'},
- {name: 'Blue', value: 'blue'},
- {name: 'Yellow', value: 'yellow'},
- {name: 'Green', value: 'green'},
- {name: 'White', value: 'white'}
-];
+import { Data } from './data';
ReactDOM.render(
-