diff --git a/README.md b/README.md index f00707c..4e62e02 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ A common typewriter animation for a landing page could look like this: ```jsx import { TypeAnimation } from 'react-type-animation'; -const ExampleComponent = () => { +const ExampleComponent = ({ onEndTypeAnimation }) => { return ( { 1000, 'We produce food for Chinchillas', 1000, + (element) => onEndTypeAnimation?.(element), ]} wrapper="span" speed={50}