Need help with 7/13, Put an event handler in a component class, please

<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/courses/react-101/lessons/this-props/exercises/event-handler-component-class?action=lesson_resume

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
When I submit the code, it spins for every. I don’t get any errors back. I’m not sure what is wrong. Any guidance is apprecaited. Thanks.

``` // Button.js

var React = require(‘react’);

var Button = React.createClass({
render: function () {
return (

Click me!

);
}
});

module.exports = Button;

// Talker.js

var React = require(‘react’);
var ReactDOM = require(‘react-dom’);
var Button = require(’./Button’);

var Talker = React.createClass({

handleEvent: function(){
for (var speech = ‘’, i=0; i<10000; i++) {
speech += 'blah ';
}
alert(speech);
},

render: function () {
return ;
}
});

ReactDOM.render(
,
document.getElementById(‘app’)
);

<do not remove the three backticks above>
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.