Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: DBX #8

Open
PokeJofeJr4th opened this issue Jun 30, 2023 · 0 comments
Open

Feature: DBX #8

PokeJofeJr4th opened this issue Jun 30, 2023 · 0 comments
Labels
feature New feature or request

Comments

@PokeJofeJr4th
Copy link
Owner

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" />
   )
}
@PokeJofeJr4th PokeJofeJr4th added the feature New feature or request label Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant