RendererProvider is used to pass the Fela renderer down to all your child components. It uses the context feature to do so. It actually is all you need to fully use Fela within your application.


Property Type Description
renderer Renderer The Fela renderer which is used to actually render our styles.


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


import { createRenderer } from 'fela'

const renderer = createRenderer()

// Wrap your root application with the RendererProvider
// to pass down the renderer to every component using context
<RendererProvider renderer={renderer}>
  <App />

results matching ""

    No results matching ""