0

I am messing around with React.js for the first time and cannot find a way to show or hide something on a page via click event. I am not loading any other library to the page, so I am looking for some native way to use the React library. This is what I have so far. I would like to show the results div when the click event fires.
var Search= React.createClass({
handleClick: function (event) {
console.log(this.prop);
},
render: function () {
return (

);
}
});

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

Some Results

);
}
});

React.renderComponent( , document.body);

Kuldeep Baberwal Changed status to publish January 28, 2025