7/13 Talker.js?


#1

here is my code for Talker.js (read all the way to the bottom where i tell you what the error is telling me to do:

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

var Talker = React.createClass({
talk: function () {
for (var speech = '', i = 0; i < 10000; i++) {
speech += 'blah ';
}
alert(speech);
},

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

ReactDOM.render(
,
document.getElementById('app')
);

--------------------------------------------end of code

Now the error message says this:
should have a property named talk.
Make sure that talk's value is a function.

so i've tried:




#2

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