@reducer/render
@reducer/render
is The Reducer To Render Elements On The Page And Keep Them There Whenever The Parent Is Present.
yarn add -E @reducer/render
Table Of Contents
API
The package is available by importing its default function:
import render from '@reducer/render'
render(
arg1: string,
arg2?: boolean,
): void
Call this function to get the result you want.
Config
: Options for the program.
Name | Type | Description | Default |
---|---|---|---|
shouldRun | boolean | A boolean option. | true |
text* | string | A text to return. | - |
/* yarn example/ */
import render from '@reducer/render'
(async () => {
const res = await render({
text: 'example',
})
console.log(res)
})()
example
Copyright
(c) Reducer 2019