React react-bootstrap alert not showing
import { Alert } from 'react-bootstrap';
import React from 'react';
const ShowSuccess= () => {
return (
<Alert color='primary' fade={false}>check it out!</Alert>
);
}
export { ShowSuccess };
and here is the part where my alert box is called
import { ShowSuccess } from '../../Notifications';
export const fetchInfo= async () => {
try {
await getData();
ShowSuccess();
} catch (error) {
console.log(error);
}
}