Skip to content

Instantly share code, notes, and snippets.

View lmbuffetti's full-sized avatar

Luigi Mattia lmbuffetti

View GitHub Profile
@rippo
rippo / dropdown.change.jsx
Last active August 10, 2018 22:04
ReactJS dropdown list example that gets data from a AJAX call with an on change event
var MyParentChange = React.createClass({
getInitialState: function() {
return {
data: [], value: {}, showOutput: false
}
},
componentDidMount: function() {
$.get(this.props.source, function(result) {