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

Add text tag utility for hooks #11

Closed
lemonadee71 opened this issue Oct 18, 2021 · 0 comments
Closed

Add text tag utility for hooks #11

lemonadee71 opened this issue Oct 18, 2021 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@lemonadee71
Copy link
Owner

Since we deal with string a lot with hooks, for convenience, we should create a text tag to turn this

$textContent: hook.$prop(str => `Some string ${str}`)

to this

$textContent: text`Some string ${hook.$prop}`

which is more concise. Both ways are valid. Tag name subject to change.

@lemonadee71 lemonadee71 added the enhancement New feature or request label Oct 18, 2021
@lemonadee71 lemonadee71 added this to the v3.0.0 milestone Oct 18, 2021
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