Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have permission to ask a question, You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please type your username.

Please type your E-Mail.

Please choose an appropriate title for the post.

Please choose the appropriate section so your post can be easily searched.

Please choose suitable Keywords Ex: post, video.

Browse

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Logo Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Logo

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Navigation

  • Home
  • About Us
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • About Us
  • Contact Us
Home/ Questions/Q 6332

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Latest Questions

Author
  • 60k
Author
Asked: November 27, 20242024-11-27T05:34:08+00:00 2024-11-27T05:34:08+00:00

An Appreciation of ReactJS

  • 60k

Web technologies evolve quickly. Before you say: Jack and Jill went… boom, three new JS frameworks have been released. For the web developer, it means that we are currently flooded with options for building web applications. Sometimes, this leads to fatigue. Yes, framework fatigue is a real thing.

The amount of choice a developer has to make is used as an argument against the JS ecosystem. There is some merit in that. I do believe though that Frameworks have considerable improved the Developer experience.

I will be discussing ReactJS and its ecosystem and how it has made building JS applications easier.

N.B: I am a beginner to ReactJS. I have built a couple of landing pages with it. Right now, I'm working on a fun little country facts app with APIs. I don't purport to know all there is to know about the workings of the framework. Everything I share here is from my personal experiences from using both React and vanilla JS to build apps.

ReactJS component-based architecture isn't unique. Every other framework from Vue and Angular both uses that same type. I am not as experienced in either of those so I won't be talking about them.

I appreciate React. I enjoy using React. That would shock a lot of beginners because the narrative in the JS community is that, React isn't the best for newbies. There is JSX to grapple with, CSS-in-JS, how exactly state and props work, etc. I did face these issues when I first got started but now I recognize why I did.

My Javascript was very low level. I knew what ES6 was but never used it in building. I just couldn't think in React. That therein lied the problem.

You see, thinking in React requires a departure from vanilla JS imperative mode of DOM manipulation. Sure you can write declarative code in vanillaJS but I never tried it, probably because it just seemed unnecessarily complicated. What React offered though was something radically fun. Building and updating the DOM had never been easier.

Let's take one example: I tried building a form for user feedback collection. I generated the HTML elements and CSS both all in JS and well…it was a mess. In my defense, I did leave enough comments to guide whoever was gonna use the codebase later on. It is not an effective way to build apps.

A single change in a property declaration for a button element, caused the whole page to refresh. I can't sufficiently explain my frustration every time it happened. This is where React's shadow DOM spoiled me.

A single change in one section — say a component — needn't rerender the whole app. The shadow DOM just updates the parts of the DOM necessary to see changes. “This is…magic” I uttered. Sure, I could be overreacting. But the thing is, I had never experienced such ease in building apps. It increased my workflow and made sure I spent more time thinking in React.

Let's explore that a bit as well. I think the component-based structure of the react is a major plus. It forces you:
to think of reusable components,
what data would be required in my case
how it all fits into the whole– the app itself.

When I got started with a Tweet component I was making, I had to let others know of this joy.

It was pretty exciting to make.

The final result of that was this:

I am still learning a lot about ReactJS. I recently just learned about the useState and useEffect hook. They are pretty nifty features react provides to manage state and side effects.

I like React. Sometimes, I get frustrated when stuff doesn't work as I expect it to, I believe it's a web technology I will enjoy as I keep building and using it.

Interested, check out the. They are amazing.new React docs

javascriptreactwebdev
  • 0 0 Answers
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question

Stats

  • Questions 4k
  • Answers 0
  • Best Answers 0
  • Users 2k
  • Popular
  • Answers
  • Author

    ES6 - A beginners guide - Template Literals

    • 0 Answers
  • Author

    Understanding Higher Order Functions in JavaScript.

    • 0 Answers
  • Author

    Build a custom video chat app with Daily and Vue.js

    • 0 Answers

Top Members

Samantha Carter

Samantha Carter

  • 0 Questions
  • 20 Points
Begginer
Ella Lewis

Ella Lewis

  • 0 Questions
  • 20 Points
Begginer
Isaac Anderson

Isaac Anderson

  • 0 Questions
  • 20 Points
Begginer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help

Footer

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise

Querify Question Shop: Explore, ask, and connect. Join our vibrant Q&A community today!

About Us

  • About Us
  • Contact Us
  • All Users

Legal Stuff

  • Terms of Use
  • Privacy Policy
  • Cookie Policy

Help

  • Knowledge Base
  • Support

Follow

© 2022 Querify Question. All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.