rofrischmann/fela

View on GitHub
website/docs/11.7.0/guides/usage-with-preact.mdx

Summary

Maintainability
Test Coverage
# 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](https://github.com/robinweser/fela/tree/master/packages/preact-fela) are basically the same as the [React bindings for Fela](https://github.com/robinweser/fela/tree/master/packages/react-fela).

```bash
yarn add preact-fela
```

Instead of providing duplicate documentation, we therefore want you to check out the [Usage with React](guides/usage-with-react) instead. Just "replace" React with Preact and you should be fine. There are only some differences which we are listing below.

> **Note**: Similar to the usage guide, the API reference for react-fela works identical with preact-fela.

---

### Related

- [preact-fela](https://github.com/robinweser/fela/tree/master/packages/preact-fela)
- [react-fela](https://github.com/robinweser/fela/tree/master/packages/react-fela)
- [inferno-fela](https://github.com/robinweser/fela/tree/master/packages/inferno-fela)