Course Content

  • 8. Dialog and modals

Course Content


We'll learn how to use React life cycle methods to save React form data or form state in local storage in this tutorial. When it comes to keeping data on the web browser, local storage comes in useful; the benefit of local storage is that data remains in the browser until the cache is cleared.

  • Local Storage: For local storage, the keyword localStorage is used. The official page Official Local Storage can be used to check browser compatibility.
  • Session Storage: For session storage, the keyword sessionStorage is used.

Is it necessary to keep data in custom attributes? No. We do not recommend storing data in DOM attributes. Data- attributes are definitely a better way even if you have to, however data should be kept in React component state or external stores in most circumstances.

JSON Server can be downloaded from the link and pasted anywhere on your computer to start it. My file contains one million JSON records. Before starting the Reactjs project, make sure JSON Server is running. JSON Server is set to run on port 3000 by default.

Recommended Courses

Share With Friend

Have a friend to whom you would want to share this course?

Download LearnVern App

App Preview Image
App QR Code Image
Code Scan or Download the app
Google Play Store
Apple App Store
598K+ Downloads
App Download Section Circle 1
4.57 Avg. Ratings
App Download Section Circle 2
15K+ Reviews
App Download Section Circle 3
  • Learn anywhere on the go
  • Get regular updates about your enrolled or new courses
  • Share content with your friends
  • Evaluate your progress through practice tests
  • No internet connection needed
  • Enroll for the webinar and join at the time of the webinar from anywhere