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

Ability to replace the container rather than mount inside #26

Open
sampotts opened this issue May 10, 2018 · 1 comment
Open

Ability to replace the container rather than mount inside #26

sampotts opened this issue May 10, 2018 · 1 comment
Assignees

Comments

@sampotts
Copy link

sampotts commented May 10, 2018

Is it possible to replace the container you specify rather than mounting inside? I'm just trying to reduce DOM elements. I understand it may be a limitation of Preact/React - sorry, I'm old skool and still getting up to speed. If so, feel free to close this.

For example:

<div class="some-class">
  <script type="text/props">
    {
      "title": "Widget Title passed as prop",
      "theme": "red",
      "anotherProp": "Thanks for trying this widget out!"
    }
  </script>
</div>

... would render ...

<div class="my-widget">
  ...
</div>

... rather than ...

<div class="some-class">
  <div class="my-widget">
    ...
  </div>
</div>
@zouhir
Copy link
Owner

zouhir commented Oct 24, 2021

I think this is a legit use case, I will implement that.

@zouhir zouhir self-assigned this Oct 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants