Clone the repo, run yarn
or npm install
to install dependencies, and then run yarn examples
(or npm run examples
) and go to http://localhost:1251/examples/index.html
.
Keep in mind that this is the unminified code and consists of a bunch of different files. Normally you'd bundle the code up.
Here's a list of the examples and what features they use/focus on
- Hello World - Most basic component
- I18N component - Focuses on I18N, also uses complex template provider.
- JSX Form - Focuses on JSX and using the complex template provider in JSX.
- Simple Clock - Defining simple properties and using, changing and rendering with them.
- Stop-watch - Focuses on complex template provider
- Stop-watch with typed HTML - Focuses on cloning the stop-watch example but without using the complex template provider and instead manipulating the DOM directly
- Themed component - Focuses on theming and typed CSS
- Tic Tac Toe - Focuses on combining everything (except for JSX).