Home Reference Source

Function

Static Public Summary
public

jumbogrove(selector: string, data: game)

The main entry point for Jumbo Grove; call jumbogrove.jumbogrove(selector, data)

Static Public

public jumbogrove(selector: string, data: game) source

import {jumbogrove} from 'jumbogrove/src/main.js'

The main entry point for Jumbo Grove; call jumbogrove.jumbogrove(selector, data)

Params:

NameTypeAttributeDescription
selector string

A CSS selector for the element you want the story to be rendered in.

data game

Your story

Example:

import { jumbogrove } from 'jumbogrove';
jumbogrove('#game', {
 // your game here
});