3 ms·
I like react on the web, but sometimes I find it cumbersome all that sending props down and passing functions to update global state. When I'm almost done with
by carloscr 8y ago
I like react on the web, but sometimes I find it cumbersome all that sending props down and passing functions to update global state. When I'm almost done with an app and then I decide that it will be nicer to open a modal window to ask the user 2 or 3 parameters is when I miss the most the desktop paradigm of just call a method that opens a small window and returns an object with the collected data
- a13n 8y agoI have a ModalContainer that passes down this.context.openModal. https://reactjs.org/docs/context.html https://reactjs.org/docs/context.html