Receive the Event Handler Not Accepting Code

<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.>

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

```

var React = require(‘react’);

var Child = React.createClass({

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;

No matter what I put in for select, it will not proceed, and there is no error code.
<do not remove the three backticks above>
1 Like

I got the same problem, tried in several ways, still doesn’t work.

var React = require('react');

var Child = React.createClass({
  render: function () {
    return (
      <div>
        <h1>
          Hey my name is {this.props.name}!
        </h1>
        <select id="great-names" onChange={this.props.changeName}>
          <option value="Frarthur">
            Frarthur
          </option>

          <option value="Gromulus">
            Gromulus
          </option>

          <option value="Thinkpiece">
            Thinkpiece
          </option>
        </select>
      </div>
    );
  }
});

module.exports = Child;

I figure out where was the error

 <select id="great-names" onChange={this.prop.onChange}>

:slight_smile:

working with props,not prop:)

2 Likes

Yep, I solved in that way as I wrote :slight_smile:
btw, thanks for the feedback :slight_smile: