Open cihanzenginff opened 5 years ago
Hello, i can't figure out how i can use component inside conditional rendering?
Btn(text=4<3 ? "SEND" : Loader)
here is i wan't to do eg: if 4<3 show string "SEND" else show Loader component
Btn(text=${ 4 < 3 ? 'SEND' : pug`Loader` })
Hello, i can't figure out how i can use component inside conditional rendering?
Btn(text=4<3 ? "SEND" : Loader)
here is i wan't to do eg: if 4<3 show string "SEND" else show Loader component