--> It is the property to mutate (change) the data by directly changing the data’s values.
--> see the code snippet to understand it.
2. What is Immutability:-
--> In this approach, original data remains the same.
--> we make the copy of the original data and if want to change anything then we change in the copy of the data, not on the original data
--> see the code snippet to understand it.
3. Advantages of Immutability:-
--> Avoiding direct data change means original data remain intact.
--> Detecting changes in mutable objects is difficult because they are modified directly but Detecting changes in immutable objects is considerably easier.
4. Uses of Immutability:-
--> used to know the current state of an Object after changes.
--> It makes our code safer and more predictable.
⚡️ If you like this make sure to:
Follow me @tejinder_id for web development-related tweets.
Thank you so much for staying to the end of this thread.
• • •
Missing some Tweet in this thread? You can try to
force a refresh
⚡️ If you are learning tailwindcss or planning to learn it. Then you can refer to the resources in the thread so that you can learn more with practice.
A thread 🧵
⒈ To learn tailwind CSS:- Go to the official website where it has covered each topic with examples.