New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fable-elmish-snabbdom

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fable-elmish-snabbdom

Snabbdom extensions for fable-elmish apps.

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-63.64%
Maintainers
1
Weekly downloads
 
Created
Source

Elmish-Snabbdom: Snabbdom extensions for fable-elmish applications.

Installation

npm install --save snabbdom
npm install --save-dev fable-core fable-powerpack fable-elmish fable-elmish-snabbdom

Add a reference to the assemblies in the package folders (e.g. node_modules/fable-elmish/Fable.Elmish.dll).

App component

Snabbdom application needs a root component to be rendered at the specified placeholder:

Usage:

open Elmish.Snabbdom

Program.mkProgram init update view
|> Program.withSnabbdom "placehoder"
|> Program.run

Choose your modules

Snabbdom use modules to provide functionalities.

Program.withSnabbdom will load this modules:

  • Snabbdom.Modules.Attributes
  • Snabbdom.Modules.Class
  • Snabbdom.Modules.EventListeners
  • Snabbdom.Modules.Props
  • Snabbdom.Modules.Style

You can choose which module to load by using Program.withSnabbdomAndModules.

Example:

Program.mkProgram init update view
|> Program.withSnabbdomAndModules
        [|
            Snabbdom.Modules.EventListeners
            Snabbdom.Modules.Props
        |]
        "placeholder"
|> Program.run

Keywords

FAQs

Package last updated on 08 Mar 2017

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