Day 6 of React — As a Beginner
Things I’ve learned on day 6…

Things I’ve Learned On Day 6:
- Why do front-end frameworks exist?
- Imperative v/s Declarative Approach — Review
1. Why Do Front-end Frameworks Exist?

- Keeping the UI (User Interface) synced with data is really hard and lots of work!
- So Front-end Frameworks and libraries like React, solve this problem and take this hard work away from the devs!
- They will be useful to structure and write the code.
- They’re building a consistent way of building front-end web applications.
2. Imperative v/s Declarative Approach — Review

Imperative Approach:
- JS is using the Imperative approach which means we have to manually change data and handle those data.
- Since we’re using the imperative approach, there are a lot of processes involved before we can able to get our desired UI.
- It’s like asking the question, “How to do things?”
Declarative Approach:
- Since the React’s Component is made up of Data, Logic, and Appearance, in a declarative approach, we can describe what the UI should look like.
- We won’t touch the DOM (Document Object Model).
- We can think of the UI as a reflection of current data and let React automatically sync UI with the data.
- It’s like asking the question, “What do we want?”
That’s a wrap🚀
I know this blog is only about theoretical concepts. But trust me they are super important and that’s why I’ve written a blog on these topics!
Hope you all have a great day.
Bye…😄👋
Resources That I’ve Used for this Blog:
I’ve used The Ultimate React Course 2023 which I bought from Udemy.
I will recommend you to check this course out without hesitation since it has been taught by my favorite teacher Jonas Schmedtmann.