$ npm i -D sweetalert
import { sweetalert } from './sweetalert';
# ??? import
I used Script tag normally and then I use swal() in ts files.
I'm using it as such:
import swal from 'sweetalert';
// then later in the code
swal("Here's a message!")
+1
Most helpful comment
I'm using it as such: