ویو جی اس

آموزش React

Do You React?

While Laracasts is dedicated to PHP and Laravel, the reality is that most of us need to write JavaScript daily as well. In this series, we'll learn about React - not the PHP version, but the JavaScript library, from the folks at Facebook. I think you'll love it!

سطح حرفه ای 10 جلسه آموزشی 01:25:00 ساعت
01
قسمت 1

A Teaser

Before we start learning, give me a few moments to demonstrate how natural and intuitive React really is.

02
قسمت 2

Hello World With React

Now that you've had a short teaser, let's hit the brakes and start from scratch. We'll pull in React, and build the obligatory "Hello World" component.

03
قسمت 3

Props

You'll likely need to pass data into your various components. We do so with "props." I'll show you.

04
قسمت 4

From Inline to External Scripts

Let's take a short break, and figure out how we can take our inline React code, and transition that to a dedicated external script. In the process, we'll discuss some options for quickly booting up a server.

05
قسمت 5

The jQuery Dilemma

Let's return to that simple idea of a counter, and reproduce it with basic jQuery. As we'll find, the process is deceptively simple. Sure, it's fewer lines, but if you're not careful, you'll end up with a massive application.js file, full of countless DOM queries.

06
قسمت 6

Multiple Components and Tasks

Before we move up to some higher level concepts, let's take the next two videos to build little toy projects to ease into the flow of using React.

07
قسمت 7

GistBox

For our next demo project, let's create a simple app that allows a person to type in a GitHub username, and then see a link to that user's most recent Gist. This will give us the opportunity to review a few new important concepts.

08
قسمت 8

Bundling With Gulp and Browserify

Already, we have three script tags for our components. In a real-life application, this could easily become dozens of scripts. Clearly, that's not the way to go. Instead, we'll leverage both Browserify and Gulp.

09
قسمت 9

Refs

Refs offer us a way to reference and access components in our applications.

10
قسمت 10

The React Chrome Extension

In this short episode, we'll review the support service, "Helpful", that Laracasts uses to see a real-life example of React components at work. In the process, we'll learn about Chrome's React extension.