A React application must mount to a DOM node. Peregrine abstracts this into "app.mount()", but it still requires a reference to a container. That reference should be optional.
Environment and steps to reproduce
OS: Any
Magento 2 version: Any
Other environment information: Any
Steps to reproduce:
Write an app file using Peregrine to create an app.
Call app.mount() with no arguments.
Run in development mode and observe errors.
Expected result:
The application renders into the document anyway.
Possible solutions:
Peregrine should always create a DOM node with standard class and role attributes, then appends it to the "container". The container should be document.body by default, but accept an argument for a DOM node to use instead.
This issue is a:
[ ] Bug [x] Feature suggestion [ ] Other
Description:
A React application must mount to a DOM node. Peregrine abstracts this into "app.mount()", but it still requires a reference to a container. That reference should be optional.
Environment and steps to reproduce
OS: Any
Magento 2 version: Any
Other environment information: Any
Steps to reproduce:
app.mount()
with no arguments.Expected result:
The application renders into the document anyway.
Possible solutions:
Peregrine should always create a DOM node with standard class and role attributes, then appends it to the "container". The container should be
document.body
by default, but accept an argument for a DOM node to use instead.Additional information: