mirror of
https://github.com/rive-app/rive-react.git
synced 2026-03-13 08:22:30 +08:00
15 lines
302 B
TypeScript
15 lines
302 B
TypeScript
import React from 'react';
|
|
import { useRive } from '@rive-app/react-canvas';
|
|
|
|
const Http = () => {
|
|
const { RiveComponent } = useRive({
|
|
src: 'https://cdn.rive.app/animations/vehicles.riv',
|
|
stateMachines: 'bumpy',
|
|
autoplay: true,
|
|
});
|
|
|
|
return <RiveComponent />;
|
|
};
|
|
|
|
export default Http;
|