Maint: Update docs for storybook link

This commit is contained in:
Zach Plata
2022-06-09 12:54:07 -05:00
committed by Zachary Plata
parent 414d6f895a
commit 5ad5a957a6
2 changed files with 3 additions and 3 deletions

View File

@@ -164,8 +164,8 @@ A Rive.js `stateMachineInput` object.
## Examples
The [examples](examples) shows a number of different ways to use Rive React. See the instructions for each example to run locally.
This project uses [Storybook](https://storybook.js.org/) to build examples and API documentation. Check it out at:
https://rive-app.github.io/rive-react. To run locally, simply run `npm run storybook`.
## Migration notes

View File

@@ -95,5 +95,5 @@ While user interaction is a common way to control animation playback for Rives,
### API-driven playback
Another common way to control animation playback is through API responses. As long as you hold a reference to the `rive` instance returned from the `useRive` hook, you can invoke control methods on that instance in places such as callbacks from API responses.
Another common way to control animation playback is through API responses. Imagine an API that you poll for loading progress of a task. Based on that progress response, you may play or stop a given animation. As long as you hold a reference to the `rive` instance returned from the `useRive` hook, you can invoke control methods on that instance in places such as callbacks from API responses.