• Stars
    star
    275
  • Rank 149,796 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Pluralsight Course on React Hooks. Released May 2019

Course Code for Using React Hooks on Pluralsight

IMPORTANT NOTICE: Updated Course: Using Hooks in React 18 (Released Nov 2022)

Updated Course Released at Different Location

This new course "Using Hooks in React 18" covers all the React Hooks covered in this course as well as the new React Hooks useTransition and useDeferredValue. The new course incorporates a lot of feedback from this course including more focus on React and less focus on the build chain NextJS. That is, there is no discussions about deployments or server-side rendering.

There is nothing inaccurate in this course regarding hooks, the newer course is improved and more up to date in all regards.

Recently Released Courses From Peter Kellner

Course Release Date
Server Component Fundamentals in React 18 June 2023
Working with Components in React 18 February 2023
Using Hooks in React 18 November 2022
What is React August 2022
What's New in React 18 May 2022
Data and UI Patterns in React December 2021

Before you start, you should install node on either your Windows or Mac computer (those are the two environments that are tested). Below, in "Getting Started" are the basics to get module 6 up and running as fast as possible.

Course Description

React versions 17.0.2 and higher, include React Hooks which solve several problems that went unaddressed in previous versions. React Hooks provide a direct API to React concepts you already know about. Those concepts include props, state, context, refs and lifecycle events. React Hooks are designed for use in React Functional Components where previously there was no good way to manage state or lifecycle events.

In this course, you’ll learn how to use the top seven React Hooks as well as gain the knowledge and experience necessary to build your own customized composite Hook. Along the way, you’ll pick up techniques you can use building real world web apps that include how React Hooks can help you with REST services, reducers, authentication and more.

When you are finished with this course, you’ll confidently be able to combine functional components with React Hooks to build first class React apps. Those apps can be written completely with functional components and React Hooks.

Getting Started

  1. Install Node 14.16 with NPM 7.9.
  2. Clone this repository. - git clone https://github.com/pkellner/pluralsight-course-using-react-hooks or download the zip
  3. **Set your default directory to which module you want (example: cd 02-Basic-React-Hooks-useState-useRef-useEffect - cd m6-add-rest-data-to-server-side-rendering
  4. Install Node Packages with Dependencies. - npm install
  5. Install this chrome extension for viewing performance data (optional).

Directory Structure Here

Each of the 5 folders here represent one module of the course. In each folder, there are subfolders that represent the completed code at the end of each clip. Where this is no clip reference, either there is no code in that clip or nothing changed from the previous clip.

Once in a clip directory, the easiest way to test the app is to first install the packages by typing at the root of that directory (in a terminal window or DOS prompt)

npm install

Then, do run the app you just need type

npm run dev

And that will launch the web server on port 3000 where you can browser to it at the url: http://localhost:3000

Background

This course uses the Next.js framework as a demonstraton vehicle for React Hooks. If you want to know more about Next.js you should watch my other course on Pluralsight titled "Building Server-side Rendered React Apps for Beginners". You can find it here.

Repo or Course Issues

If you find any problems or issues, feel free to post it as an issue here at this forum and I will look into it as soon as I can. You can also contact me directly at https://peterkellner.net/contact/

I hope you enjoy the course!

Notes

Update Notes for April 2021 Release

If you want to get to the source code from the previous course release in April 2020, you can find it in the branch named Course-Update-July-2020.

More Repositories

1

pluralsight-designing-react-components-course-code

Pluralsight Course on Designing React Components.
JavaScript
193
star
2

pluralsight-course-react-aspnet-core

The master branch here is the latest updates to the Pluralsight course published by Peter Kellner in May of 2018 in the master branch
JavaScript
84
star
3

pluralsight-course-server-side-rendered-react-nextjs

This is the repository associated with the Pluralsight course "Building Server-side React Apps"
JavaScript
81
star
4

pluralsight-working-with-components-in-react18

pluralsight-working-with-components-in-react18
JavaScript
41
star
5

pluralsight-what-is-react

What is React Course at Pluralsight
JavaScript
33
star
6

pluralsight-using-hooks-in-react18

JavaScript
32
star
7

pluralsight-multitenantaspnet

Starting Files for Pluralsight Course Multi-tenant ASP.NET with Examples in Angular and ExtJS
C#
28
star
8

pluralsight-course-aspnet-taghelpers-viewcomponents

This is the companion source code for the Pluralsight course ASP.NET Tag Helpers and View Components by Peter Kellner
HTML
19
star
9

pluralsight-apollo-managing-performance

Source Code for Pluralsight Course Apollo: Performance Management Playbook
CSS
18
star
10

pluralsight-whats-new-in-react18

Source code for the Pluralsight Course by Peter Kellner, "What's New in React 18"
JavaScript
16
star
11

pluralsight-building-essential-ui-data-elements-in-react

This course will teach you how to build a real world React application that manages multiple types of data relations including single table, one-to-one, one-to-many and many-to-many.
JavaScript
14
star
12

debug-react-hooks-with-redux-devtools

HTML
11
star
13

pluralsight-react-server-component-fundamentals

CSS
9
star
14

progress-telerik-blog-viewcomponent

CSS
8
star
15

EntityFrameworkSeedFromJSON

How to take a JSON file and include it in a Visual Studio 2015 Console project that includes Entity Framework 6 and seed that Data (from the JSON file)
C#
6
star
16

pluralsight-react-working-with-data

TypeScript
5
star
17

airquality

JavaScript
4
star
18

nextjs-utils-chromium-extension

A Chrome Extension to View The Size and JSON of NextJS __NEXT_DATA__
JavaScript
4
star
19

nextjs-google-recaptcha-v3-app-router-demo

This is a simple implementation of using the google recaptcha v3 with next.js appr outer. That is, the /src/ folder with route.ts and page.ts
TypeScript
4
star
20

apollo-server-3-with-cache-redis

Working simple GraphQL Apollo Server 3 using Cache controls and Redis on localhost
JavaScript
3
star
21

next13-image-problem

2
star
22

nextjs13-dev-vs-build-bug

Demonstrated that a simple app that has a page and loading page will not run show the loading page when build.
CSS
2
star
23

next-routes-problem

JavaScript
2
star
24

pluralsight-react-server-component-fundamentals-demo

demo
CSS
2
star
25

apollo-client-3-code-review-needed

Needing a Code Review of Apollo Client 3.0 Aspects of this project
CSS
2
star
26

TagHelpersBuiltInAspNetCore

Tag Helpers Built Into ASP.NET Core
C#
2
star
27

CarboniteExclusions

CarboniteExclusions
C#
2
star
28

as4-redis-cache-broken

This takes the codesandbox example from the AS4 docs and morphs it on another branch to use redis. that fails to add keys to redis
TypeScript
2
star
29

SVCC-AngularJS

JavaScript
2
star
30

pluralsight-using-hooks-in-react18-hands-on

CSS
2
star
31

nextjs-13-and-apollographql-experimental

This is a simple repository that uses the new NextJS 13 experimental feature for loading data serverside and then displaying it in a browser
JavaScript
2
star
32

course-beginning-javascript

This the course repository for Getting Started With Modern JavaScript by Peter Kellner
JavaScript
2
star
33

ScriptManagerTagHelper

HTML
2
star
34

pluralsight-react-18-whats-new-prelim

JavaScript
1
star
35

react-suspense-promise-issue-23045

This tracks to the issue on the React github repo https://github.com/facebook/react/issues/23045
JavaScript
1
star
36

nexttechtest

JavaScript
1
star
37

react-no-suspense-issue-23045

JavaScript
1
star
38

react_issue_23045_fakeapi

JavaScript
1
star
39

Chromium-Edge-Dev-Tools

JavaScript
1
star
40

MultiTenantDemoNg

HTML
1
star
41

callback-theme-toggle

CSS
1
star
42

pluralsight-suspense-blog-post

1
star
43

swr_issue_1906_suspense

JavaScript
1
star
44

aspnetcore-react-hc-auth

asp.net core 5 react template just adding auth and hot chocolate
JavaScript
1
star
45

peterstest101

testing azure serverless deploy
1
star
46

m3final

JavaScript
1
star
47

react-ssr-cdm-problem

Shows in a trivial example using react 16.2 that componentDidMount fires when using hydrate on a very simple server side app.
JavaScript
1
star
48

pkellner

My Blog
HTML
1
star
49

pluralsight-whats-new-in-react18-prelim

JavaScript
1
star
50

article-building-a-bootstrap-5-legend-with-chatgpt-help

See the dialog between me (a software dev) talking to ChatGPT to build a simple legend using ChatGPT. As a non bootstrap wizard, this only took me about 2 minutes in total and I got a very impressive legend built in Bootstrap 4 as a React / TypeScript component.
1
star