mirror of
https://github.com/rive-app/rive-react.git
synced 2026-03-13 08:22:30 +08:00
15 lines
389 B
Markdown
15 lines
389 B
Markdown
# State Machine Trigger Input
|
|
|
|
This example shows how to interact with a state machine with a trigger input. We call the `fire()` function on the state machine input to transition the state when the animation is clicked.
|
|
|
|
## To Run
|
|
|
|
This example is created using [Create React App](https://reactjs.org/docs/create-a-new-react-app.html).
|
|
|
|
To install and run:
|
|
|
|
```
|
|
npm install
|
|
npm start
|
|
```
|