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

Passing props object as argument #14

Closed
fabioricali opened this issue Sep 12, 2019 · 1 comment
Closed

Passing props object as argument #14

fabioricali opened this issue Sep 12, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@fabioricali
Copy link
Member

It might be useful to pass the props object as an argument to the template function.
Like:

template(h, props)  {
    return h`
          <div>${props.name}</div>
    `
} 
@fabioricali fabioricali added the enhancement New feature or request label Sep 12, 2019
@fabioricali
Copy link
Member Author

in next release

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

1 participant