M
M
mishapsv2015-11-16 12:49:50
React
mishapsv, 2015-11-16 12:49:50

How to bind events on different components to one?

There is a button to open the popup.
There is a popup with a close button.
There is a parent component where they are used together.
You need to change the class for the popup depending on whether it is open or not.
A catchy example is here .
Can you please tell me how to trigger events?
Or maybe a link where you can see examples?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mishapsv, 2015-11-16
@mishapsv

Figured it out
jsbin.com/garicepaga/edit?html ,css,js,output

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question