0% found this document useful (0 votes)
2 views4 pages

JavaScript Frameworks

Uploaded by

singraw07
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views4 pages

JavaScript Frameworks

Uploaded by

singraw07
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

JavaScript frameworks are an essential part of modern front-end web development,

providing developers with tried and tested tools for building scalable, interactive web
applications. Many modern companies use frameworks as a standard part of their tooling, so
many front-end development jobs now require framework experience. This set of articles
provides a comfortable starting point to help you begin learning frameworks.

As an aspiring front-end developer, it can be hard to work out where to begin when learning
frameworks — there are so many frameworks to choose from, new ones appear all the time,
they mostly work in a similar way but do some things differently, and there are some specific
things to be careful about when using frameworks.

We are not aiming to exhaustively teach you everything you need to know about
React/ReactDOM, or Vue, or some other specific framework; the framework teams' own
docs (and other resources) do that job already. Instead, we want to back up and first answer
more fundamental questions such as:

 Why should I use a framework? What problems do they solve for me?

 What questions should I ask when trying to choose a framework? Do I even need to
use a framework?

 What features do frameworks have? How do they work in general, and how do
frameworks' implementations of these features differ?

 How do they relate to "vanilla" JavaScript or HTML?

After that, we'll provide some tutorials covering the essentials React, a popular framework
choice, to provide you with enough context and familiarity to start going into greater depth
yourself. We want you to go forward and learn about frameworks in a pragmatic way that
doesn't forget about web platform fundamental best practices such as accessibility.

We also provide some tutorials covering the basics of other framework choices, for those
who want to make a different choice to React.

Note: Scrimba's Libraries/Frameworks MDN learning partner interactive tutorial provides a useful
summary of frameworks versus libraries, a brief history of libraries and frameworks on the
web, and some background information specifically on React.

In this article

 Prerequisites

 Introductory tutorials

 React tutorials

 Other framework choices

 Which frameworks did we choose?


The complete auth solution for AI agentsAuth0 lets you focus on building by eliminating the
security overhead for your agents, APIs, & usersStart Building

Ad

Prerequisites

You should really learn the basics of the core web languages first before attempting to move
on to learning client-side frameworks — HTML, CSS, and especially JavaScript.

Your code will be richer and more professional as a result, and you'll be able to troubleshoot
problems with more confidence if you understand the fundamental web platform features
that the frameworks are building on top of.

Introductory tutorials

Introduction to client-side frameworks

We begin our look at frameworks with a general overview of the area, looking at a brief
history of JavaScript and frameworks, why frameworks exist and what they give us, how to
start thinking about choosing a framework to learn, and what alternatives there are to
client-side frameworks.
Framework main features

Each major JavaScript framework has a different approach to updating the DOM, handling
browser events, and providing an enjoyable developer experience. This article will explore
the main features of "the big 4" frameworks, looking at how frameworks tend to work from
a high level and the differences between them.

React tutorials

Note: React tutorials last tested in January 2023, with React/ReactDOM 18.2.0 and create-
react-app 5.0.1.

If you need to check your code against our version, you can find a finished version of the
sample React app code in our todo-react repository. For a running live version,
see [Link]

Getting started with React

In this article we will say hello to React. We'll discover a little bit of detail about its
background and use cases, set up a basic React toolchain on our local computer, and create
and play with a simple starter app, learning a bit about how React works in the process.

Beginning our React ToDo app

Let's say that we've been tasked with creating a proof-of-concept in React – an app that
allows users to add, edit, and delete tasks they want to work on, and also mark tasks as
complete without deleting them. This article will walk you through putting the
basic App component structure and styling in place, ready for individual component
definition and interactivity, which we'll add later.

Componentizing our React app

At this point, our app is a monolith. Before we can make it do things, we need to break it
apart into manageable, descriptive components. React doesn't have any hard rules for what
is and isn't a component – that's up to you! In this article, we will show you a sensible way to
break our app up into components.

React interactivity: Events and state

With our component plan worked out, it's now time to start updating our app from a
completely static UI to one that actually allows us to interact and change things. In this
article we'll do this, digging into events and state along the way.

React interactivity: Editing, filtering, conditional rendering

As we near the end of our React journey (for now at least), we'll add the finishing touches to
the main areas of functionality in our Todo list app. This includes allowing you to edit
existing tasks and filtering the list of tasks between all, completed, and incomplete tasks.
We'll look at conditional UI rendering along the way.
Accessibility in React

In our final tutorial article, we'll focus on (pun intended) accessibility, including focus
management in React, which can improve usability and reduce confusion for both keyboard-
only and screen reader users.

React resources

Our final article provides you with a list of React resources that you can use to go further in
your learning.

You might also like