Usage with Preact

Like Inferno, Preact is a modern React-like UI library which ships an almost identical API, but claims to be much faster and lightweight. Due to the fact that it is really similar to React's API, the Preact bindings for Fela are basically the same as the React bindings for Fela.

# yarn
yarn add react-fela

# npm
npm i --save react-fela

Instead of providing duplicate documentation, we therefore want you to check out the Usage with React instead. Just "replace" React with Preact and you should be fine. There are only some differences which we are listing below.

Different packages

import { renderToString } from 'react-dom/server'
import { renderToString } from 'preact-render-to-string'
import { render } from 'react-dom'
import { render } from 'preact'

results matching ""

    No results matching ""