Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fxapp

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fxapp

Build JavaScript apps using effects as data

  • 0.2.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

FX App

Build Status codecov npm

Here is an example counter that can be incremented or decremented. Go ahead and try it online.

fx.app({
  state: {
    count: 0
  },
  actions: {
    down: ({ state, fx }) => fx.merge({ count: state.count - 1 }),
    up: ({ state, fx }) => fx.merge({ count: state.count + 1 })
  },
  view: ({ state, fx }) => [
    "main",
    ["h1", state.count],
    [
      "button",
      {
        onclick: fx.action("down"),
        disabled: state.count <= 0
      },
      "-"
    ],
    ["button", { onclick: fx.action("up") }, "+"]
  ]
});

License

FX App is MIT licensed. See LICENSE.

Keywords

FAQs

Package last updated on 06 Mar 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc