componentDidMount() {
    Modal.setAppElement('#__next');

    if (window.location.hash === '#signup') {
      this.handleOpenModal();
    }

    window.addEventListener('hashchange', () => {
      if (window.location.hash === '#signup') {
        this.handleOpenModal();
      }
    });
  }
// Only need this client-side
Only need this client-side
Only need this client - side
componentDidMount() {
    Modal.setAppElement('#__next');
    if (window.location.hash === '#signup') {
      this.handleOpenModal();
    }
    window.addEventListener('hashchange', () => {
      if (window.location.hash === '#signup') {
        this.handleOpenModal();
      }
    });
  }
componentDidMount ( ) { Modal . setAppElement ( '#__next' ) ; if ( window . location . hash === '#signup' ) { this . handleOpenModal ( ) ; } window . addEventListener ( 'hashchange' , ( ) => { if ( window . location . hash === '#signup' ) { this . handleOpenModal ( ) ; } } ) ; }
Only need this client-side
Only need this client - side