Back to Todomvc

Readme

examples/preact/readme.md

2.0.0818 B
Original Source

TodoMVC: Preact

Description

This application uses Preact 10.11.3 to implement the TodoMVC application.

  • Preact Fast 3kB alternative to React with the same modern API.

Implementation details

Preact:
Model: TodoModel (model.js}
View: Preact ui components
controller: App (app.js)

MVC:
Model: maintains the data and behavior of an application
View: displays the model in the ui
Controller: serves as an interface between view & model components

Build steps

terminal:
1. npm run build

Requirements

The only requirement is an installation of Node, to be able to install dependencies and run scripts to serve a local server.

* Node (min version: 18.13.0)
* NPM (min version: 8.19.3)

Local preview

terminal:
1. npm install
2. npm run start