Self-closing tags like <div />
in a custom code block trigger a hydration error when using the React SDK.
Builder content link
Builder public api key
5e285471921d459f96a0bcceb066c3a6
Detailed steps to reproduce the bug
- Go to the Visual Editor.
- Add a Custom Code block.
- Add a self-closing tag to the block, like
<div />
. - Publish.
- Refresh twice.
- Observe the hydration error.
Screenshots or video link
Code stack you are integrating Builder with
Next.js
Reproducible code example