#jerome-prb-react
1 messages · Page 1 of 1 (latest)
Sorry for the delay! I missed your initial message
Can you give me a bit more detail about "buttons replae everything in the dom"?
no worries. I have a react app with several page using react-router-dom
.at some point I have a page with the Elements from react-scripe-js. this is like the provider.
The children of Elements will load a component with all the code I need in order to display a gpay button.
all of this is serounded by a layout component.
but when the gpay button render, everything get replaced
the page layout and all the children. all the html associated with that get removed and replaced by the button code
and it look like this.
and this is before the button appear
oh... maybe its because the app is all inside a portal?
theres a lot of code. mmm let me try to convert it so its not in a portal anymore.
its not needed anymore anyway. ill keep you posted
👍 sounds good