As a web developer can you explain why React is needed?

AI Dashboard is available on the Web, Apple, Google, and Microsoft, PRO version

As a web developer, can you explain why React is needed?

In the early days of the internet, web sites were essentially made of static HTML files. Web servers were little more than file servers, when a user would come to a url, the web server would simply fetch it, and send it to the user via their browser, along with all kind of assets, like fonts and images.

As a web developer, can you explain why React is needed?

The functionality of this kind of web pages are very limited, so eventually the web became more dynamic. When people would visit a page or interact with a form, instead of just fetching data, the server could perform an operation and prepare some content on demand. That content would still be sent to the user’s browser. There could also a little bit of code running on the browser, to animate pages, handle form and what not, but not very much.

So up until around 2010, that was the dominant model. Code could be involved to generate content but the browser wouldn’t do much, most of the logic would happen on servers which would just send prepared content to the browser.

However, in the early 2010s, this paradigm started to shift. With HTML5/CSS3, the browser became much more capable, and so people started to move the logic that would generate content from the server to the browser. Instead of sending a whole styled HTML page, a web server could just send the data needed to create it. Then, code could run on the browser to actually turn that data into HTML. That browser code could also update what the user would see, making just the required data calls.

Get 20% off Google Google Workspace (Google Meet) Standard Plan with  the following codes: 96DRHDRA9J7GTN6
Get 20% off Google Workspace (Google Meet)  Business Plan (AMERICAS) with  the following codes:  C37HCAQRVR7JTFK Get 20% off Google Workspace (Google Meet) Business Plan (AMERICAS): M9HNXHX3WC9H7YE (Email us for more codes)

Active Anti-Aging Eye Gel, Reduces Dark Circles, Puffy Eyes, Crow's Feet and Fine Lines & Wrinkles, Packed with Hyaluronic Acid & Age Defying Botanicals

So, in the early to mid 2010s, front-end code would typically:

  • render complex web pages from data retrieved from back-end,
  • simulate “navigation” between different views: when the user would do some actions, the entire page would change, the url would update etc. but without actually loading a new page from the server.
  • maintain the state of an application: the application could track certain things about the user and the session, and won’t have to reload that information from the server all the time.
  • dynamically update both contents and style of a web page.

Now, all of this is possible to do in “vanilla javascript”. But it’s really cumbersome to implement it, and especially tricky to do it in a performant way. There are millions and millions of “web apps” that are replacing the static “web sites” of old, and which all need to dynamically render content. Should developers reimplement that from scratch each time?

Enter the web frameworks such as React. These frameworks are abstractions that let the developers focus on the logic of their web app (where the data comes from, how content is organized) without being tied to the nitty gritty. Web frameworks make developers organize their code in building blocks called modules or components. Somebody could write a header component and someone else building a page could reuse that header component. And a third developer could change the header component, and that change would be reflected everywhere the component is used. Folks could also build 3rd party libraries compatible with the web framework ecosystem, that would address common problems that many developers face. For instance, someone could create a date picker component (a notably tricky interface) that anyone can reuse and customize. Or create a solution to deal with very long pages by only rendering what is in the browser viewport, and creating/deleting elements as a user would scroll.

AI Unraveled: Demystifying Frequently Asked Questions on Artificial Intelligence (OpenAI, ChatGPT, Google Bard, Generative AI, Discriminative AI, xAI, LLMs, GPUs, Machine Learning, NLP, Promp Engineering)

To have the support of this ecosystem is a huge productivity boost. There are millions of developers who work with React, and the most popular React libraries are very elegant solutions to hard problems(the same could be said of Angular, Vue etc. though their communities are a bit smaller).

React and web frameworks aren’t exactly needed, in fact there is a reverse trend in the last couple of years to go back to server generated content in some cases or to only use vanilla javascript, but it’s a very solid foundation to build a web app.

As a web developer can you explain why React is needed?


1- The specific rationale for React is state management and efficient page updates, it’s underlying power comes not just from the structure and tooling provided by it being a framework, but also the shadow-DOM and component lifecycle that along with state management empower greater interactivity without very slow inefficient page updates.

Pass the AWS Certified Machine Learning Specialty Exam with Flying Colors: Master Data Engineering, Exploratory Data Analysis, Modeling, Machine Learning Implementation, Operations, and NLP with 3 Practice Exams. Get the MLS-C01 Practice Exam book Now!

2- React isn’t needed, but it is a great framework that can reduce the amount of work you do in making a website/webapp.

React is great for widgets and implementing patterns. You can keep data/text separate from structure and behavior. React, angular and vue are all popular frameworks. Before that we used stuff like dust, handlebars, jQuery and UI libraries like dojo and jQuery UI.

Developers are always looking for ways to be more efficient and more maintainable. React is a current iteration tool for being more efficient.

3- It is needed as a pattern for the devs to create packages that will works (The React packages). In NPM there are many packages, but all them are following its own logic, docs or no docs, they are based on another packages, etc. With things like React, you are somehow limited to follow its rules and you are entering its ecosystem which is good. This is true for all frameworks/libraries.

React also has some configurations which follows the best practices (create-react-app, NextJS, etc), but this is the same and for others.

The difference is that React is close to JS and there is a lot of freedom, what to use like a package, starter pack, use or not Typescript.

  • React Native Android Cookie Header
    by /u/Cultural-Solution-76 (React Native - Learn once, write anywhere.) on April 23, 2024 at 11:35 pm

    I have an API using Ruby on Rails and a React Native client. Im using axios to run the requests, iOS runs okay but android is not sending the cookie header, even when I set with_credentials in axios. I believe I'm missing some config for android. Anyone knows how to solve that? submitted by /u/Cultural-Solution-76 [link] [comments]

  • We made a new site for Krazam
    by /u/itswilso (React – A JavaScript library for building user interfaces) on April 23, 2024 at 11:27 pm

    submitted by /u/itswilso [link] [comments]

  • Pushing react-native-web to production
    by /u/Separate_Ad_8451 (React Native - Learn once, write anywhere.) on April 23, 2024 at 11:12 pm

    Hi all, I've been experimenting with react-native-web and finally have a site I want to push to my hostinger account which is hosting a react site currently. Normally, for something like a react-site, I just run rpm run build and that generates what I need to upload. This doesn't seem to work for me with react-native-web so I'm wondering if there's something else I need to do. Also wondering if it is possible to add these files to the file manager so I can keep my react site as is and then just link to the new react-native-web aspect of it. submitted by /u/Separate_Ad_8451 [link] [comments]

  • Flutter Element Embedding — Unleashing the Power of Integrating Flutter Apps into Websites…
    by Lucas Goldner (React on Medium) on April 23, 2024 at 10:41 pm

    When I first learned about Element Embedding at FlutterForward 2023, its potential immediately captivated me.Continue reading on Medium »

  • asking about react course ?
    by /u/Crafty_Pumpkin5889 (React – A JavaScript library for building user interfaces) on April 23, 2024 at 10:40 pm

    Iam looking for working as front-end engineer and , someone advice me with this course , it's 67 hours, and my questions , how many sections i should study in that course to start apply on a jop ?! plz help ! submitted by /u/Crafty_Pumpkin5889 [link] [comments]

  • Legends of the Navajo Nation | 4Chan /x/ Greentext
    by Mr Oniman (React on Medium) on April 23, 2024 at 10:15 pm reading on Medium »

  • Help figuring out why ScrollView doesn't scroll when there's another Scroll View on the Screen.
    by /u/RogueGingerz (React Native - Learn once, write anywhere.) on April 23, 2024 at 9:17 pm

    Hello, I'm learning React Native and need help understanding how multiple scrollViews interact with each other. I have my primary screen where there is a primary View where there is a scrollview (the exercise cards) which works perfectly as expected. The problem is when I push the filter button, a box with a scrollView appears, but I'm unable to scroll. I purposefully disabled the scrolling ability of the primary scrollView (exercise cards), and when I took this out it didn't' fix my problem. I've seen other places where it says to permit nested scrollView, set it to true, but that didn't work either. I assume that this didn't work because they are not nested. I also realize I could make it a modal and it would alleviate my issue, but I'm more curious now why this doesn't work and how to get it to work. Primary Screen with my primary scrollView: <View style={Styles.background}> {addExerciseModalOpen && <AddExerciseModal setAddExerciseModalOpen={setAddExerciseModalOpen} setExercises={setExerciseList} exercises={exerciseList}/>} <View style={{position: 'absolute', right: '6%', bottom: '14%', alignItems: 'flex-end'}}> {filterModalOpen && <FilterModal selectedFilter={selectedFilter} setSelectedFilter={setSelectedFilter} />} </View> <View style={{justifyContent: 'flex-start', alignItems: 'center'}} > <View style={{ width: '100%', justifyContent: 'flex-start', alignItems: 'center' }} > <Text style={Styles.titleText}>Your Exercises :</Text> <WhiteDivider dividerWidth={100}/> </View> <ScrollView nestedScrollEnabled={true} scrollEnabled={!filterModalOpen} style={{width:'90%', height: '100%'}}> { => { return ( <ExerciseCard key={exercise.exerciseName} exercise={exercise}/> ) }) }</ScrollView> </View> <View style={{position: 'absolute', right: '6%', bottom: '8%', alignItems: 'flex-end', flexDirection: 'row'}}> <Pressable style={{paddingRight: 35}} onPress={() => { Haptics.notificationAsync( Haptics.NotificationFeedbackType.Success ) setAddExerciseModalOpen(false) setFilterModalOpen(!filterModalOpen); }} > <Octicons name="filter" size={40} color={Colors.darkMode.button}/> </Pressable> <Pressable onPress={() => { Haptics.notificationAsync( Haptics.NotificationFeedbackType.Success ) setFilterModalOpen(false) setAddExerciseModalOpen(!addExerciseModalOpen); }} > <Ionicons name="add-circle-outline" size={40} color={Colors.darkMode.button}/> </Pressable> </View> </View> Filter Modal, contains secondary scrollView: <View style={{ zIndex: 1000, flex: 1, justifyContent: 'flex-end', alignItems: 'center', width: 125, height: 150, borderRadius: 25, backgroundColor: Colors.darkMode.cards1 }}> <ScrollView showsVerticalScrollIndicator={false} style={{ marginTop: 15, marginBottom: 15 }}> {renderFilterChoices()} </ScrollView> </View> submitted by /u/RogueGingerz [link] [comments]

  • Üretken Yapay Zeka Araçları Kullanarak Uygulama Geliştiriyorum 1- Kullanarak UI Oluşturma
    by Eyüp Özmen (React on Medium) on April 23, 2024 at 9:01 pm

    v0 Nedir, Nasıl Çalışır ?Continue reading on Medium »

  • I build a Group Chat app 🙂
    by /u/Waste-Box6567 (React – A JavaScript library for building user interfaces) on April 23, 2024 at 8:38 pm

    Hello everyone! 👋 I'm excited to share with you my latest project, Chatify 💬, a group chat app that I've been developing over the past few days. Chatify allows users to communicate with each other in real-time with the following key features: Real-Time Communication: Leveraging Socket.IO, Chatify enables seamless real-time data transfer between users, facilitating instant messaging and updates. Online User Tracking: Enhance user engagement and interaction by displaying the number of online users within each chat room in real-time. Join/Leave Notifications: Integrated join and leave notifications notify users when someone joins or leaves a chat room, facilitating smoother communication. Cross-Platform Compatibility: Implementing CORS (Cross-Origin Resource Sharing) ensures seamless data sharing and communication across different platforms. Explore Chatify here: Chatify App Please note: To chat with others, ensure you use the same room ID as them react #learninpublic #buildinpublic #frontend #webdevelopment submitted by /u/Waste-Box6567 [link] [comments]

  • Chat Application Using Framework7, React, and FastAPI
    by Eugene Evstafev (React on Medium) on April 23, 2024 at 8:23 pm

    IntroductionContinue reading on Medium »

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Pass the 2023 AWS Cloud Practitioner CCP CLF-C02 Certification with flying colors Ace the 2023 AWS Solutions Architect Associate SAA-C03 Exam with Confidence Pass the 2023 AWS Certified Machine Learning Specialty MLS-C01 Exam with Flying Colors

List of Freely available programming books - What is the single most influential book every Programmers should read

#BlackOwned #BlackEntrepreneurs #BlackBuniness #AWSCertified #AWSCloudPractitioner #AWSCertification #AWSCLFC02 #CloudComputing #AWSStudyGuide #AWSTraining #AWSCareer #AWSExamPrep #AWSCommunity #AWSEducation #AWSBasics #AWSCertified #AWSMachineLearning #AWSCertification #AWSSpecialty #MachineLearning #AWSStudyGuide #CloudComputing #DataScience #AWSCertified #AWSSolutionsArchitect #AWSArchitectAssociate #AWSCertification #AWSStudyGuide #CloudComputing #AWSArchitecture #AWSTraining #AWSCareer #AWSExamPrep #AWSCommunity #AWSEducation #AzureFundamentals #AZ900 #MicrosoftAzure #ITCertification #CertificationPrep #StudyMaterials #TechLearning #MicrosoftCertified #AzureCertification #TechBooks

zCanadian Quiz and Trivia, Canadian History, Citizenship Test, Geography, Wildlife, Secenries, Banff, Tourism

Africa Quiz, Africa Trivia, Quiz, African History, Geography, Wildlife, Culture

Exploring the Pros and Cons of Visiting All Provinces and Territories in Canada.
Exploring the Pros and Cons of Visiting All Provinces and Territories in Canada

Exploring the Advantages and Disadvantages of Visiting All 50 States in the USA
Exploring the Advantages and Disadvantages of Visiting All 50 States in the USA

Health Health, a science-based community to discuss health news and the coronavirus (COVID-19) pandemic

Today I Learned (TIL) You learn something new every day; what did you learn today? Submit interesting and specific facts about something that you just found out here.

Reddit Science This community is a place to share and discuss new scientific research. Read about the latest advances in astronomy, biology, medicine, physics, social science, and more. Find and submit new publications and popular science coverage of current research.

Reddit Sports Sports News and Highlights from the NFL, NBA, NHL, MLB, MLS, and leagues around the world.

Turn your dream into reality with Google Workspace: It’s free for the first 14 days.
Get 20% off Google Google Workspace (Google Meet) Standard Plan with  the following codes:
Get 20% off Google Google Workspace (Google Meet) Standard Plan with  the following codes: 96DRHDRA9J7GTN6 96DRHDRA9J7GTN6
With Google Workspace, Get custom email @yourcompany, Work from anywhere; Easily scale up or down
Google gives you the tools you need to run your business like a pro. Set up custom email, share files securely online, video chat from any device, and more.
Google Workspace provides a platform, a common ground, for all our internal teams and operations to collaboratively support our primary business goal, which is to deliver quality information to our readers quickly.
Get 20% off Google Workspace (Google Meet) Business Plan (AMERICAS): M9HNXHX3WC9H7YE
Even if you’re small, you want people to see you as a professional business. If you’re still growing, you need the building blocks to get you where you want to be. I’ve learned so much about business through Google Workspace—I can’t imagine working without it.
(Email us for more codes)

error: Content is protected !!