// React Toolbox Playground
// -------------------------------------------------------------------
// Use this area to try components. You will find next to each example
// in the documentation a button to load the code in the playground.
// Remember that you can leave the playground and keep your progress
// but loading new examples will smash your changes!
class Welcome extends React.Component {
state = {
active: false
};
handleToggle = () => {
this.setState({active: !this.state.active});
}
actions = [{
label: 'Great!',
onClick: this.handleToggle
}];
render () {
return (
);
}
}
return ;