Nervously Practice Multithreading
    Wondering what’s next for npm?Check out our public roadmap! »

    @act/hmr

    0.0.4 • Public • Published

    Act
    A simple reactive front-end framework

     


    Act hot module replacement [hmr]

    Act hmr hello world:

    import main from '@act/hmr'
     
    const view = (val) =>
      ['button', { click: { add: 1 } }, val]
     
    const reducer = (state, { type, payload }) =>
      type === 'add' ? state + payload : state
     
    main(view, { reducer, module })

    Here's a full kanban board example. And here's a video explaining it in more detail.

    More

    The documentation for this module is part of Act's docs.

    Keywords

    none

    Install

    npm i @act/hmr

    DownloadsWeekly Downloads

    0

    Version

    0.0.4

    License

    ISC

    Last publish

    Collaborators

    • avatar