Put an Event Handler in a Component Class


#1

<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.>
7. Put an Event Handler in a Component Class

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
I followed the instructions, try several times to pass this exercise but in vain.
Thanks for help!

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

#2

Now I configure out.
Thanks to this article: Code not working


#3

Como hiciste la anterior? la 6


#4

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