📄️ Setting up LeanJSX
Create a new project
📄️ Project structure
A LeanJSX project generated with generator-lean-jsx has the following structure:
📄️ Create a new page
Creating a new page is very simple. Just declare a new handler for the Express server and render some JSX content using LeanJSX's engine:
📄️ Create a component
Components are classified in two: static and dynamic.
📄️ Create a dynamic component
For a component to have dynamic behavior -that is, to being able to update or re-render its contents without reloading the whole page- it needs to be explicitely configured as a dynamic component.
📄️ Dependencies
LeanJSX relies on the following tooling: