meiosis-setup

meiosis-setup

Helper library to set up the Meiosis pattern for you. Please make sure to first read the documentation on the Meiosis pattern.

Features

  • Works with function patches and Mergerino
  • Includes a simple stream implementation, or you can use Flyd or Mithril Stream
  • Sets up Initial State, Services, and Nested Components
  • Provides TypeScript support

Installation

Using npm:

npm i meiosis-setup

Then you can import it and use it with this code:

import { meiosisSetup } from 'meiosis-setup';

const cells = meiosisSetup();

With a script tag:

<script src="https://unpkg.com/meiosis-setup/meiosis-setup.js"></script>

Or load the minimized version:

<script src="https://unpkg.com/meiosis-setup/meiosis-setup.min.js"></script>

Then use the Meiosis global variable:

const cells = Meiosis.setup();

Documentation

Please refer to the meiosis-setup Documentation.

Credits

Many thanks to the following people for your contributions, feedback, and suggestions. They are much appreciated!


meiosis-setup is developed by foxdonut (@foxdonut00) and is released under the MIT license.

Generated using TypeDoc