Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- handleClick = (e) => {
- e.preventDefault();
- alert(e.target);
- };
- ColorComponent = (props) => {
- return (
- <span onClick={this.handleClick} style={this.styles.word}>{props.children}</span>
- );
- };
Add Comment
Please, Sign In to add comment