If I have a MaterialUI icon button, rendered in the header, how do I make a modal shown when I click that button? How do I handle modals in react in general? Where should I render it and how should I make it open programatically?
Asked
Active
Viewed 970 times
1
-
1Your question is generic and should ideally cite prior research. You can go over the excellent examples available on material-ui docs [on this topic](http://www.material-ui.com/#/components/dialog). – hazardous May 24 '16 at 10:53
-
Check Dan's Abramov answer: https://stackoverflow.com/questions/35623656/how-can-i-display-a-modal-dialog-in-redux-that-performs-asynchronous-actions/35641680 – chenop Nov 15 '17 at 06:42
1 Answers
0
I think the standard React way is to use parent states, altering them by callbacks and sending them to children thru props. Here is my answer to similiar question.
Or another option is to invoke children methods by refts to children.