Preset allows a quick setup with default settings and a default plugins so that you don't need to setup plugins manually.
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: {}})import jss from 'jss'
import preset from 'jss-preset-default'
jss.setup(preset())import {create} from 'jss'
import preset from 'jss-preset-default'
const jss = create(preset())