dont-use-device-condition
: Don’t use device condition to show or hide the componentIt is strongly advised to utilize the ftd.desktop
and ftd.mobile
components in order to display components on desktop and mobile devices, respectively. This is because fastn
performs optimization techniques, including decreasing the size of the created component tree, generating optimized code that renders quickly, and reducing the component’s dependencies.
ftd.responsive-type
and ftd.length.responsive
, that are specified for the corresponding devices.-- desktop-page: if: { ftd.device == "desktop" }
-- ftd.desktop: -- desktop-page: -- end: ftd.desktop
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.