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

new feat: Render default html props without mapping #71

Open
PedroAugustoRamalhoDuarte opened this issue Dec 30, 2023 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@PedroAugustoRamalhoDuarte

Thanks for this library!!

I check the source code and nowadays need we need to map default html props to make it works with this example.

Do you guys think is a good feature to support defaults types like div, h1 and p without needing to create a mapping?

Example:

{
  "type": "div",
  "props": {
    "children": [
      {
        "type": "h1",
        "props": {
          "children": "Título do Componente"
        }
      },
      {
        "type": "p",
        "props": {
          "children": "Conteúdo do componente."
        }
      }
    ]
  }
}
@chrisvxd
Copy link
Member

chrisvxd commented Jan 2, 2024

Hey @PedroAugustoRamalhoDuarte! I think that's a brilliant suggestion.

It's not a priority for us at the moment, but we're happy to accept contributions if you need it urgently.

@chrisvxd chrisvxd added the enhancement New feature or request label Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants