From b3eea642680b78b1009e830cf31fa1767b8f1125 Mon Sep 17 00:00:00 2001 From: Chanyoung Park Date: Fri, 5 Jul 2024 12:12:46 +0900 Subject: [PATCH] Update: Add an example with callback in the sequence --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}