3 ms·
No components??? It's no good then. Edit: Sure, having automatic HTML escape for values is good. I work with JSX every day, and I can't really imagine having i
by andraaspar 8y ago
No components??? It's no good then.
Edit: Sure, having automatic HTML escape for values is good. I work with JSX every day, and I can't really imagine having it all in one huge chunk and no code reuse. Also, what about conditional hide/show and lists?
- RussianCow 8y agoThe very first example in the README shows how to render a list using `map`, duplicated here[0]. I don't know about conditional rendering; the README doesn't have any examples of that, and there doesn't appear to be any actual documentation. Edit: You could probably create a separate function with an `html!` return and call that from the first? If the return types line up, which they should, I don't see why you couldn't do that. [0]: https://github.com/bodil/typed-html#example-1 https://github.com/bodil/typed-html#example-1