-
Notifications
You must be signed in to change notification settings - Fork 7
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
.toString()? #5
Comments
Guess this would be shorthand for https://github.com/shama/base-element/blob/master/examples/server-side.js#L24-L31. Thinking the interface would look something like: const str = el.toString(['This is', 'the initial', 'content']) |
+1 That's a good idea. Because then we could perform a render first too in case |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When rendering on the server it can be neat to implement a
.toString()
function (or equivalent) to render components tohtml
. I'm not sure what the tradeoffs are; but I think it's feasible to implement for every component. Thanks!See Also
The text was updated successfully, but these errors were encountered: