Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How use component inside conditional rendering #108

Open
cihanzenginff opened this issue Aug 7, 2019 · 1 comment
Open

How use component inside conditional rendering #108

cihanzenginff opened this issue Aug 7, 2019 · 1 comment

Comments

@cihanzenginff
Copy link

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

@pruge
Copy link

pruge commented Jun 30, 2020

Btn(text=${ 4 < 3 ? 'SEND' : pug`Loader` })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants