You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Aniket Prajapati edited this page Jun 19, 2020
·
2 revisions
FireJS exports the following components for faster and easy to make webpages
Link: Used for navigating pages (in-project only). Preloads page content onMouseEnter event.
Head: Injects children to head element. A wrapper around react-helmet. Allows SSR.
LazyLoad Enables lazy loading and SSR of components.
Example
importLinkfrom"@eadded/firejs/Link"importHeadfrom"@eadded/firejs/Head";importLazyLoadfrom"@eadded/firejs/LazyLoad.js";exportdefault()=>{constMarkdown=LazyLoad(import("markdown-to-jsx"));return(<div><Head><title>Index Page</title></Head><Linkto="/about">Link to About Page</Link><Markdown>
# This is a lazy loaded component
</Markdown></div>)}