Namespaces
When using layout areas Atomic Layout generates React components for each declared area:
To make the rendering part shorter, we recommend using Object Spread syntax for areas object given as an argument to the render function.
However, this way area components reserve their namespaces within the render function's scope. This may result into conflicts when you have custom React components which name matches the area name:
Referencing custom Logo component becomes problematic and requires to rename things around.
To prevent from namespace collisions we recommend not to spread the areas Object in cases when areas names match the names of your custom React components:
This way generated areas are scoped under a single "Areas" namespace.
Last updated