How to type react element arguments
I want to take a string like this
but when i call it like this it says
So i try to use an anonymous class kind of thing
But that's some mess.
The following works
But that is ugly as hell, how do i write that properly ??
but when i call it like this it says
So i try to use an anonymous class kind of thing
But that's some mess.
The following works
But that is ugly as hell, how do i write that properly ??
