0.15.1 • Published 11 months ago

@coldwired/react v0.15.1

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

@coldwired/react npm package

Why?

Usage

Setup

You need to create a react root and a plugin that you will register with your Actions instance.

import { Actions } from '@coldwired/actions';
import { createRoot, createReactPlugin } from '@coldwired/react';

const root = createRoot(document.getElementById('react-root'), {
  loader: (name) => import(`./${name}.js`).default,
});
const plugin = createReactPlugin({ root });
const actions = new Actions({ element: document.body, plugins: [plugin] });
actions.observe();
await actions.ready();
0.15.0

1 year ago

0.14.1

1 year ago

0.15.1

11 months ago

0.14.0

1 year ago

0.13.1

1 year ago

0.13.0

1 year ago

0.12.2

1 year ago

0.12.1

1 year ago

0.12.0

1 year ago