Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div>
- <h4 style="cursor:pointer" onClick="()=>this.toggle()">
- Click to {this.state.open ? 'close' : 'open'}
- </h4>
- <p rt-if="this.state.open">This is my paragraph. It opens and
- closes</p>
- </div>
Add Comment
Please, Sign In to add comment