FelaRenderer

FelaRenderer is a consumer component leveraging the render-props pattern. It can be used to access the renderer object that is passed down via context by a RendererProvider.

Props

Property Type Description
children Function A render function that receives the renderer object as its first parameter.

Imports

import { FelaRenderer } from 'react-fela'
import { FelaRenderer } from 'preact-fela'
import { FelaRenderer } from 'inferno-fela'

Example

<FelaRenderer>
  {renderer => (
    // do something with the renderer
  )}
</FelaRenderer>

results matching ""

    No results matching ""