How to create following scenario in react ?
I have created one disclaimer modal which will get open on login. When I close or Agree Disclaimer , it should not be reopen till logout.
CodePudding user response:
you can use cookies or localstorage so when the modal is showen you set this params to true and in logout set to false and dont show this modal until this param is false or not set and the user is logged in