I'm trying to use swup js with React js. when I import swup and add const swup = new Swup();
It shows following error.
How can I fix it.
I added it like this
import Swup from 'swup';
const swup = new Swup(); //
export default function TestingComponent(){
return(
<div>
<main id="swup" className="transition-fade">
<div className="container">
This component created for test swup js
</div>
</main>
</div>
);
}
Error TypeError: Cannot set property 'responseURL' of null
Can somebody help me to fix this out.
you can use framer it will help you. check the blowing link and learn it https://www.youtube.com/watch?v=WHCr554UJ1I