• Home
  • Success Stories
  • Software Testing
  • Data Engineering
  • Residential Program
  • front-end
  • Business Analyst
  • Events
  • Courses
  • Blog
  • Apply
  • ISA
  • Mock Interview
  • F1 Student Placement Data
  • FAQ
  • Resources
  • Internships and Jobs
  • Privacy Policy
  • Pay
  • laidoffsupport
  • Home
  • Success Stories
  • Software Testing
  • Data Engineering
  • Residential Program
  • front-end
  • Business Analyst
  • Events
  • Courses
  • Blog
  • Apply
  • ISA
  • Mock Interview
  • F1 Student Placement Data
  • FAQ
  • Resources
  • Internships and Jobs
  • Privacy Policy
  • Pay
  • laidoffsupport
WYNISCO
  • Home
  • Success Stories
  • Software Testing
  • Data Engineering
  • Residential Program
  • front-end
  • Business Analyst
  • Events
  • Courses
  • Blog
  • Apply
  • ISA
  • Mock Interview
  • F1 Student Placement Data
  • FAQ
  • Resources
  • Internships and Jobs
  • Privacy Policy
  • Pay
  • laidoffsupport

    Author

    These blogs are ideas and learning's of Wynisco employees and Bootcamp students

    Archives

    January 2023
    December 2022
    November 2022
    October 2022
    August 2022
    May 2022
    February 2022
    January 2022
    December 2021
    November 2021
    October 2021
    April 2021
    March 2021

    Categories

    All

    RSS Feed

Back to Blog

What is Dirty in REACT?

12/30/2022

 
What is dirty? 

When a user fills up the form without completely filling up all fields and leaves either deliberately or accidentally. We call that state dirty.
I did not know myself until we worked on a project where we had a lot of forms.

You can either fill up a new form or edit an existing form.


So how do you determine if your form is dirty or not? 

First, we have to maintain 2 states.
Initial State and Current State

If a user is trying to close the browser or move to another page, We need to warn them that they have not saved their form.
Well you have to compare the initial state Vs Final State

You have to compare the object values of the initial state vs the final state

Some libraries can help you deep compare.

S
ome devs use JSON.stringify to convert form value into a string and compare that

Some use deep compare libraries like Lodash and Ramda. They provide utilities right out of the box to compare

Some form libraries like Formik provide an API Reference value that automatically tells you whether their form is dirty or not.

0 Comments
Read More
Back to Blog

How to find Clutch.co to find Web Developer/Frontend/UI Engineer internships and jobs.(Hack)

12/29/2022

 
You can use a clutch or any other similar websites to find internships. It's the hacker's way.

Also scraped exported sheet link here.



0 Comments
Read More

Services

Courses
​F1 Stud App
​React 
Apply
React Syllabus
Internships
Data Analyst/Science
Software Testing/QA
Residential Program
Mock Interview

Company

Home
ISA​
​Linkedin Group
​
Recruiters/HR
​
Contact Us
​
Blog
Resources
Certificate
Life in Wynisco
​About Us
For Employers
Privacy Policy
​

​
​

© COPYRIGHT 2020 ALL RIGHTS RESERVED.