You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

fjsx

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fjsx

JSX views with functional style reactive programming

0.0.3
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 10 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts