My Very First Github Issue

My very First github issue.
It’s about Facebook React.js.
https://jsfiddle.net/69z2wepo/53526/

js

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
var Hello = React.createClass({

getInitialState: function() {
return {select_value: ''};
},
handleState1: function(event) {
this.setState({select_value: '1'});
},
handleState2: function(event) {
this.setState({select_value: '2'});
},
componentDidMount() {
handleState1(),
handleState2()
},
render: function() {
return (
<select defaultValue={this.state.select_value}>
<option value="">none</option>
<option value="1">normal</option>
<option value="2">model</option>
</select>
)
}
});

ReactDOM.render(
<Hello name="World" />,
document.getElementById('container')
);

html

1
2
3
4
5
6
<script src="https://facebook.github.io/react/js/jsfiddle-integration-babel.js"></script>
<script src="../build/react.js"></script>

<div id="container">
<!-- This element's contents will be replaced with your component. -->
</div>

issue