0.0.3 • Published 6 years ago

fjsx v0.0.3

Weekly downloads
5
License
ISC
Repository
github
Last release
6 years ago

Fjsx

A counter example:

var counter$ = 0; // An option: If variables ending with $ they are observable.

var view = (
  <>
    <button onClick={() => counter$++}> + </button>
    {counter$}
    <button onClick={() => counter$--}> - </button>
  </>
); // Bonus! view is a real DOM element(s)

document.body.appendChild(view);

The above example can work because our compiler compiles to knockout style observable functions.

You can browse our todomvc example for a more advanced example.

fjsx-examples is a configured project for starting.

API

TODO

Acknowledgement

Some ideas are inspired from surplus

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago