Transform

Transformers are functions that enable simple transformations of elements. A transformer is triggered during the execution of a read.

register(kind, fn)

Registers a transformer to a specific kind.

Usage

import { transform } from '@skele/classic'

transform.register('scene', element =>
  element.setIn(['metadata', 'title'], 'Home page')
)

results matching ""

    No results matching ""