@rive-app/webgl
runtime, exposing types and Rive instance functionality.@rive-app/react-canvas
- Wraps the @rive-app/canvas
dependency. Unless you specifically need a WebGL
backing renderer, we recommend you use this dependency when using Rive in your apps for quick and fast usage.@rive-app/react-webgl
- Wraps the @rive-app/webgl
dependency. In the future, we may have advanced rendering features that are only supported by using WebGL
. We are currently working on improving the performance with this backing renderer.rive-react
dependency and is still published today. Despite being actively published, It contains a larger bundle, as it has dependencies for both @rive-app/canvas
and @rive-app/webgl
. Starting in v2.0.0, we recommend you switch to one of the above dependencies instead.useRive
hook provides both of these. This hook returns a component and a rive
object which gives you control of the current Rive file.RiveComponent
is rendered in the JSX, as the underlying <canvas>
element needs to be present in the DOM