Skip to content

Main Site Pages

Vitor Vicente edited this page Mar 9, 2020 · 1 revision

Each Page on the Main Website is an exported JS constant that is made up of STATIC HTML & Component Imports, there should be NO dynamic elements directly developed into these constants, neither should a page be anything other than a constant, so to maintain linearity in the code.


Imports

Each of these pages must import the main.css file, alongside with the Header & Footer component so to maintain the same look throughout the website. All pages must be listed under the ./pages/main-site folder.


Export

Make sure to export each of these constants as the default export for the file, alongside with using the withRouter(...) statement so that the App itself can use it in the routing.

Clone this wiki locally