Day 6 of React — As a Beginner

Things I’ve learned on day 6…

SriniWhoCodes
2 min readJun 15, 2023
React JS

Things I’ve Learned On Day 6:

  1. Why do front-end frameworks exist?
  2. Imperative v/s Declarative Approach — Review

1. Why Do Front-end Frameworks Exist?

Frameworks and Libraries
  • 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:

  1. JS is using the Imperative approach which means we have to manually change data and handle those data.
  2. Since we’re using the imperative approach, there are a lot of processes involved before we can able to get our desired UI.
  3. It’s like asking the question, “How to do things?”

Declarative Approach:

  1. 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.
  2. We won’t touch the DOM (Document Object Model).
  3. We can think of the UI as a reflection of current data and let React automatically sync UI with the data.
  4. 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.

Sign up to discover human stories that deepen your understanding of the world.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

SriniWhoCodes
SriniWhoCodes

Written by SriniWhoCodes

I write about Web Development and other related stuffs.

No responses yet

Write a response