Skip to content
This repository has been archived by the owner on Jul 1, 2020. It is now read-only.

Pages and Paths

Aniket Prajapati edited this page Jun 12, 2020 · 1 revision

FireJS treats all the files in the pages dir as URL routes. A page about.js will be translated to /about.

The following comparison will help you understand better.

└─── pages                                   
|    - index.js                                 /
|    - about.js                                 /about
|    └─── contact                               
|         - index.js                            /contact
|         - facebook.js                         /contact/facebook

From now we will refer each file in the pages dir as a page, and its corresponding URL as its path.

For Eg, in the above comparison, file index.js is a page and / is its path.

🏡 Home

Getting Started
Advance
Tips and Tricks

🗒️ All examples in this documentation are written in typescript

Clone this wiki locally