boolean variable
inside the component.boolean $<boolean-variable>: true
if condition
to the Body part.if: { box.<boolean-variable> }
on-click
.$on-click$: $toggle($<function-argument> = $box.<boolean-variable>)
toggle function
after component.-- void toggle(<function-argument>): boolean $function-argument: <function-argument> = !<function-argument>;
Don’t want to rewrite this but want to reuse it in your next project?
Or, You want to share it with others?
In Part 5, you will learn how to publish it as a package on GitHub.fastn
!fastn
? Please consider giving us a star ⭐️ on GitHub to show your support!Have a question or need help?
Visit our GitHub Q&A discussion to get answers and subscribe to it to stay tuned.
Join our Discord channel and share your thoughts, suggestion, question etc.
Connect with our community!We welcome you to join our Discord community today.
We are trying to create the language for human beings and we do not believe it would be possible without your support. We would love to hear from you.