3 ms·
Holy smokes, that would be irritating :D Btw. is there a difference between these two: (s: string): PlainText => <PlainText><any>s; (s: string): Plain
by mushishi 6y ago
Holy smokes, that would be irritating :D
Btw. is there a difference between these two:
(s: string): PlainText => <PlainText><any>s;
(s: string): PlainText => s as any as PlainText;
Syntax-wise I'd rather use the latter for it's more clear in typed JSX-context.
- pd-andy 6y agoAs far as I know those two are equivalent. Definitely slightly clunkier, but is what it is.