DBX
You can embed DBX in DreamBerd. It's just DreamBerd, and it's also just HTML.
funct App() => {
return <div>Hello world!</div>
}
Warning: As you know, class is already a keyword in DreamBerd, so you can't use it within DBX.
funct App() => {
// This is not ok
return <div class="greeting">Hello world!</div>
}
className is also a DreamBerd keyword, so you can't use that either.
funct App() => {
// This is also not ok
return <div className="greeting">Hello world!</div>
}
Instead, you can use the htmlClassName attribute.
funct App() => {
// This is fine
return <div htmlClassName="greeting">Hello world!</div>
}
Please note: Unlike JSX, you are free to freely use the for attribute - because DreamBerd doesn't have loops.
funct App() => {
return (
<label for="name">Name</label>
<input id="name" />
)
}
DBX
You can embed DBX in DreamBerd. It's just DreamBerd, and it's also just HTML.
Warning: As you know,
classis already a keyword in DreamBerd, so you can't use it within DBX.classNameis also a DreamBerd keyword, so you can't use that either.Instead, you can use the
htmlClassNameattribute.Please note: Unlike JSX, you are free to freely use the
forattribute - because DreamBerd doesn't have loops.