Closed 43081j closed 1 year ago
As of lit 2 you can now use the nothing constant to render nothing:
nothing
render() { if (!foo) { return nothing; } return html` ... `; }
this means there's probably no reason anymore for empty templates like this:
render() { if (!foo) { return html``; } }
As of lit 2 you can now use the
nothing
constant to render nothing:this means there's probably no reason anymore for empty templates like this: