Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onClick={() => {
Toast.fail('fail');
}}
>
setTimeout(() => {
Toast.hide();
}, 3000);
}}
onClick={() => {
Toast.info('info');
}}
>
onClick={() => {
Toast.loading('loading');
setTimeout(() => {
Toast.hide();
}, 3000);
}}
>
onClick={() => {
Toast.success('success');
}}
>