score:4

Accepted answer
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react-dom.min.js"></script>
<div id="container"></div>

score:0


    Toggle class "main" for p elements

    

This is a paragraph.

This is another paragraph.

Note: Click the button more than once to see the toggle effect.


Related Query

More Query from same tag