Skip to content

heyjiawei/popup-on-leaving-page-demo

Repository files navigation

popup-on-leaving-page-demo

How to run this demo

  1. yarn install
  2. yarn start

How to edit the code and test your own theory

  1. yarn install
  2. yarn run start-dev

There are 3 examples:

  1. localhost:3000 is a traditional web page
  2. localhost:3002 is SPA that allows you to play with both history blocking on a page level. It also allows you to navigate within a SPA and navigate via the tranditional web page way using window.location.href
  3. localhost:3003 is a SPA with history blocking set in every page

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published