- Issue created by @lauriii
- ๐ฎ๐ณIndia sanket.tale
Hi @lauriii
In React, "children" is a reserved prop that automatically holds any nested content. When you reuse it as a slot name in Experience Builder, it can conflict with Reactโs builtโin handling and lead to unexpected undefined values.
I think To fix this, rename the slot name. - ๐ฎ๐ณIndia meghasharma
Yes, children is a reserved prop in React, and using it as a slot name in Experience Builder is causing conflicts.
I am exploring this issue and trying to understand the best way to fix it. If anyone has suggestions on the correct approach for renaming the slot, I would like to learn more. - ๐ซ๐ฎFinland lauriii Finland
I'm wondering if we could allow using children as a slot similar way to how it's allowed in React? We could have special behavior attached to it so that instead of showing the slot in the layers panel, the children would appear as direct children of the parent.