Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (22 sloc) 951 Bytes

Default preset for JSS with selected plugins

Preset allows a quick setup with default settings and a default plugins so that you don't need to setup plugins manually.

API

preset()

It exports a default function which accepts options. Options is a map of plugin name in camel case and plugin options as value.

It returns a JSS options object, which you can pass to JSS constructor or the setup.

import preset from 'jss-preset-default'

preset({somePlugin: {}})

Setup global JSS instance

import jss from 'jss'
import preset from 'jss-preset-default'

jss.setup(preset())

Setup custom JSS instance

import {create} from 'jss'
import preset from 'jss-preset-default'

const jss = create(preset())