Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 715 Bytes

File metadata and controls

25 lines (20 loc) · 715 Bytes

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>