<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/en/courses/react-102/lessons/child-updates-parents-state/exercises/child-parent-receive-handler?action=lesson_resume&link_content_target=interstitial_lesson
<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
Only getting a red X on the exercise, no error messages. None of the various changes I’ve tried have worked. Would like to blame it on the exercise being buggy but I know it’s probably user error.
Child.JS
var React = require(‘react’);
var Child = React.createClass({
handleChange: function (e) {
var name = e.target.value;
this.props.onChange(name);
},
render: function () {
return (
Hey my name is {this.props.name}!
Frarthur
<option value="Gromulus">
Gromulus
</option>
<option value="Thinkpiece">
Thinkpiece
</option>
</select>
</div>
);
}
});
module.exports = Child;
<do not remove the three backticks above>