Thanks a lot for the library. It feels like the missing bit (typed templating). It's an important part of my tailwind-webpack-starter and so far it has worked well. That said, I have an open question.
So far I have
import * as elements from "typed-html";
export default ({ label }) => <div class="btn btn-blue">{label}</div>;
to represent a button but I would prefer to write
import * as elements from "typed-html";
export default ({ children }) => <div class="btn btn-blue">{children}</div>;
and then <Button>demo</Button> when invoking.
I can see createElement would have to deal with this as a special to achieve the mapping above.
Thanks a lot for the library. It feels like the missing bit (typed templating). It's an important part of my tailwind-webpack-starter and so far it has worked well. That said, I have an open question.
So far I have
to represent a button but I would prefer to write
and then
<Button>demo</Button>
when invoking.I can see
createElement
would have to deal with this as a special to achieve the mapping above.Would you accept such a contribution?