0.0.7 • Published 5 years ago

@fjsx/runtime v0.0.7

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

Fjsx

A counter example:

var counter$ = 0; // An option: If a variable ends with $ then it is 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.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

6 years ago

0.0.3

6 years ago