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

Implement fragment #12

Closed
ClassicOldSong opened this issue Jun 11, 2019 · 2 comments
Closed

Implement fragment #12

ClassicOldSong opened this issue Jun 11, 2019 · 2 comments

Comments

@ClassicOldSong
Copy link
Member

ClassicOldSong commented Jun 11, 2019

For now a component can only be created within a tag, thus is not really convenient for some complicated circumstances. For example, a template like:

>h1
  .Hello, World!
>h2
  .Hello, ef.js

could be rendered as:

<h1>Hello, World!</h1>
<h2>Hello, ef.js</h2>

This can also be helpful when using jsx implementation(#3), while React provides React.fragment which does exactly the same thing.

ClassicOldSong added a commit that referenced this issue Jun 12, 2019
1. Added fragment support #12, 2. Added text fragment support #13, 3. Added jsx support #3
@ClassicOldSong
Copy link
Member Author

Mounting points in fragments is not working properly, will have a fix in 0.9.1

ClassicOldSong added a commit that referenced this issue Jun 13, 2019
Resolve #3, #12, #13
Drop support for under IE11(needs WeapMap polyfill)
@ClassicOldSong
Copy link
Member Author

Fixed in v0.9.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant