2014-12-07 14:13:35 +01:00
|
|
|
<div>
|
2014-12-28 10:47:34 +01:00
|
|
|
<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>
|
2014-12-07 14:13:35 +01:00
|
|
|
</div>
|