Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ X J
- import React from "react";
- class ExampleComponent extends React.Component{
- constructor(props){
- super( BN
- this.state = {
- clicked:false
- i
- i
- handleClick = ()=>{
- RS S TR
- clicked: !this.state.clicked
- 1)
- }
- render(){
- g RSl onClick={this.handleClick} > Click Me </} JiE)
- I
- 3
- export default Exampl lelely] 4
Advertisement
Add Comment
Please, Sign In to add comment