Giter Club home page Giter Club logo

react-fundamentals's Introduction

Learn the foundational concepts necessary for building React applications and libraries

Learn everything you need to be effective with the fundamental building block of React applications. When you're finished, you'll be prepared to create React components to build excellent experiences for your app's users.

Learn React from Start to Finish

Build Status GPL 3.0 License All Contributors Code of Conduct Gitpod ready-to-code

Prerequisites

NOTE: The EpicReact.dev videos were recorded with React version ^16.13 and all material in this repo has been updated to React version ^18. Differences are minor and any relevant differences are noted in the instructions.

Quick start

It's recommended you run everything in the same environment you work in every day, but if you don't want to set up the repository locally, you can get started in one click with Gitpod, CodeSandbox, or by following the video demo instructions for GitHub Codespaces.

Open in Gitpod

For a local development environment, follow the instructions below

System Requirements

All of these must be available in your PATH. To verify things are set up properly, you can run this:

git --version
node --version
npm --version

If you have trouble with any of these, learn more about the PATH environment variable and how to fix it here for windows or mac/linux.

Setup

If you want to commit and push your work as you go, you'll want to fork first and then clone your fork rather than this repo directly.

After you've made sure to have the correct things (and versions) installed, you should be able to just run a few commands to get set up:

git clone https://github.com/kentcdodds/react-fundamentals.git
cd react-fundamentals
node setup

This may take a few minutes. It will ask you for your email. This is optional and just automatically adds your email to the links in the project to make filling out some forms easier.

A few common issues during node setup have involved PATH variables (above links or here), reinstalling git, node, or npm, and clearing npm caches.

If you get any errors, please read through them and see if you can find out what the problem is. If you can't work it out on your own then please file an issue and provide all the output from the commands you ran (even if it's a lot).

If you can't get the setup script to work, then just make sure you have the right versions of the requirements listed above, and run the following commands:

npm install
npm run validate

If you are still unable to fix issues and you know how to use Docker 🐳 you can setup the project with the following command:

docker-compose up

Running the app

To get the app up and running (and really see if it worked), run:

npm start

This should start up your browser. If you're familiar, this is a standard react-scripts application.

You can also open the deployment of the app on Netlify.

Running the tests

npm test

This will start Jest in watch mode. Read the output and play around with it. The tests are there to help you reach the final version, however sometimes you can accomplish the task and the tests still fail if you implement things differently than I do in my solution, so don't look to them as a complete authority.

Exercises

  • src/exercise/00.md: Background, Exercise Instructions, Extra Credit
  • src/exercise/00.js: Exercise with Emoji helpers
  • src/__tests__/00.js: Tests
  • src/final/00.js: Final version
  • src/final/00.extra-0.js: Final version of extra credit

The purpose of the exercise is not for you to work through all the material. It's intended to get your brain thinking about the right questions to ask me as I walk through the material.

Helpful Emoji 🐨 πŸ’° πŸ’― πŸ“ πŸ¦‰ πŸ“œ πŸ’£ πŸ’ͺ 🏁 πŸ‘¨β€πŸ’Ό 🚨

Each exercise has comments in it to help you get through the exercise. These fun emoji characters are here to help you.

  • Kody the Koala 🐨 will tell you when there's something specific you should do
  • Marty the Money Bag πŸ’° will give you specific tips (and sometimes code) along the way
  • Hannah the Hundred πŸ’― will give you extra challenges you can do if you finish the exercises early.
  • Nancy the Notepad πŸ“ will encourage you to take notes on what you're learning
  • Olivia the Owl πŸ¦‰ will give you useful tidbits/best practice notes and a link for elaboration and feedback.
  • Dominic the Document πŸ“œ will give you links to useful documentation
  • Berry the Bomb πŸ’£ will be hanging around anywhere you need to blow stuff up (delete code)
  • Matthew the Muscle πŸ’ͺ will indicate that you're working with an exercise
  • Chuck the Checkered Flag 🏁 will indicate that you're working with a final
  • Peter the Product Manager πŸ‘¨β€πŸ’Ό helps us know what our users want
  • Alfred the Alert 🚨 will occasionally show up in the test failures with potential explanations for why the tests are failing.

Contributors

Thanks goes to these wonderful people (emoji key):

Kent C. Dodds
Kent C. Dodds

πŸ’» πŸ“– πŸš‡ ⚠️
Justin Dorfman
Justin Dorfman

πŸ”
Ben Ilegbodu
Ben Ilegbodu

πŸ“–
Jonathan Belcher
Jonathan Belcher

πŸ“–
Richard Hefner
Richard Hefner

πŸ’»
Zac Jones
Zac Jones

πŸ“–
Ricardo Busquet
Ricardo Busquet

πŸ“–
Arpan Chattopadhyay
Arpan Chattopadhyay

πŸ“–
Marco Moretti
Marco Moretti

πŸ’»
cindy
cindy

πŸ“–
Aaron Reisman
Aaron Reisman

πŸ“–
Jacob M-G Evans
Jacob M-G Evans

πŸ‘€
Jesse Hull
Jesse Hull

πŸ“–
Tomas Caraccia
Tomas Caraccia

πŸ“–
Vasilii Kovalev
Vasilii Kovalev

πŸ’»
Felix Geelhaar
Felix Geelhaar

πŸ“–
Apola Kipso
Apola Kipso

πŸ“–
dcgoodwin2112
dcgoodwin2112

πŸ›
Pritam Sangani
Pritam Sangani

πŸ’»
Ryan Hinerman
Ryan Hinerman

πŸ“– πŸ’»
Marco
Marco

πŸ›
Peter HozΓ‘k
Peter HozΓ‘k

πŸ’»
Emmanouil Zoumpoulakis
Emmanouil Zoumpoulakis

πŸ“–
Navneet Sahota
Navneet Sahota

πŸ“–
Rodrigo Fuentes
Rodrigo Fuentes

πŸ“–
Johnny Magrippis
Johnny Magrippis

πŸ’»
Roshan Acharya
Roshan Acharya

πŸ“–
Art Telesh
Art Telesh

πŸ“– πŸ’»
Amr A.Mohammed
Amr A.Mohammed

πŸ€”
Douglas
Douglas

πŸ“–
Gaurav
Gaurav

πŸ’»
LauraOneasca
LauraOneasca

πŸ“–
MichaΓ«l De Boey
MichaΓ«l De Boey

πŸ’»
Hannes Diercks
Hannes Diercks

⚠️
Luke
Luke

πŸ›
Toni Dezman
Toni Dezman

πŸ’»
Bobby Warner
Bobby Warner

πŸ’»
Konrad SzaΕ‚wiΕ„ski
Konrad SzaΕ‚wiΕ„ski

πŸ’»
Yaseen Kadir
Yaseen Kadir

πŸ›
Kevin Viglucci
Kevin Viglucci

πŸ“–
Iliyan Trifonov
Iliyan Trifonov

πŸ“–
Oscar Dominguez
Oscar Dominguez

πŸ“–
Aaron Casanova
Aaron Casanova

πŸ’»
Kyle Gach
Kyle Gach

πŸ“–
Anthony DikΓ©
Anthony DikΓ©

πŸ“–
Matt Schlenker
Matt Schlenker

πŸ“–
Jakub
Jakub

πŸ“–
Victor Debone
Victor Debone

πŸ“–
Mahbub Zaman
Mahbub Zaman

πŸ“–
Misaki Okajima
Misaki Okajima

πŸ“–
Mario Sannum
Mario Sannum

πŸ’»
Katherine Peterson
Katherine Peterson

πŸ“–
Alex Watt
Alex Watt

πŸ“–
Ned Redmond
Ned Redmond

⚠️
Oz Adari
Oz Adari

πŸ“–
Chiranjeev Gupta
Chiranjeev Gupta

πŸ“–
Sunnatullo Ganiev
Sunnatullo Ganiev

πŸ“–
Joey Cardosi
Joey Cardosi

πŸ“–
Luca
Luca

πŸ“–
Anjola Adeuyi
Anjola Adeuyi

πŸ“–
Sai Pavan
Sai Pavan

πŸ’»
James Murphy
James Murphy

πŸ›
Jen Gorfine
Jen Gorfine

πŸ› ️️️️♿️ πŸ’»
Ambuj sahu
Ambuj sahu

πŸ“–
Mat Chan
Mat Chan

πŸ’»
Jesse Kroon
Jesse Kroon

πŸ“–

This project follows the all-contributors specification. Contributions of any kind welcome!

Workshop Feedback

Each exercise has an Elaboration and Feedback link. Please fill that out after the exercise and instruction.

At the end of the workshop, please go to this URL to give overall feedback. Thank you! https://kcd.im/rf-ws-feedback

react-fundamentals's People

Contributors

aaronccasanova avatar allcontributors[bot] avatar apolakipso avatar aprillion avatar belcherj avatar creador-dev avatar decisa avatar dependabot[bot] avatar emzoumpo avatar havock94 avatar jkrooncoding avatar kentcdodds avatar lauraoneasca avatar lifeparticle avatar m4ttsch avatar marcosvega91 avatar marioleed avatar mattchannn avatar mattstobbs avatar michaeldeboey avatar mokajima avatar navneet-sahota avatar nedredmond avatar octokatherine avatar oscard0m avatar ozadari5 avatar pritamsangani avatar rbusquet avatar rchinerman avatar rodrigofuentes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

react-fundamentals's Issues

Can't access course with old email

Hi,
I purchased the Epic React course with an email I no longer have access to.
I sent an email to support, but I suspect it was sent to spam since I sent it from my personal email.

Please let me know if I can get assistance on this issue.

Question about browserslist

Hi, right after setting up a project from

git clone https://github.com/kentcdodds/react-fundamentals.git
cd react-fundamentals
node setup

I saw an error about browserslist: caniuse-lite is outdated

CleanShot 2024-03-21 at 17 38 18@2x

So I tried to run a command, as the error have shown

npx update-browserslist-db@latest

and got some more error
CleanShot 2024-03-21 at 17 43 56@2x

I tried to run validate from

npm run validate

and it seems fine, except some DeprecationWarning here
CleanShot 2024-03-21 at 17 46 47@2x

So this make me wondering, should we install a module browserslist in a project as well.
Or does everything seems fine here to you?

Oh BTW,
After the command finish I didn't see any ask you for your email from the command itself. Not really sure is there anything wrong here?


Machine context.

git --version
git version 2.39.3 (Apple Git-146)
node --version
v21.7.1
npm --version
10.5.0

Mac error command "node setup"

▢️ Starting workshop setup...
Running the following command: npx "https://gist.github.com/kentcdodds/bb452ffe53a5caa3600197e1d8005733" -q -- --no-autofill
npm ERR! code Unknown system error -86
npm ERR! syscall spawn
npm ERR! errno -86
npm ERR! spawn Unknown system error -86
npm ERR! code Unknown system error -86
npm ERR! syscall spawn
npm ERR! errno -86
npm ERR! spawn Unknown system error -86

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/nguyenviet/.npm/_logs/2024-05-05T12_37_07_346Z-debug-0.log

Error during setup

Hello! I am getting errors during the dependency install:

`node setup
▢️ Starting workshop setup...
Running the following command: npx "https://gist.github.com/kentcdodds/bb452ffe53a5caa3600197e1d8005733" -q
▢️ Starting: System Validation
Ensuring the correct versions of tools are installed on this computer.
Running the following command: npx --yes "https://gist.github.com/kentcdodds/abbc32701f78fa70298d444c2303b6d9" βœ… Success: System Validation

▢️  Starting: Dependency Installation
      Installing third party code dependencies so the workshop works properly on this computer.
      Running the following command: npm install --legacy-peer-deps --no-save

npm WARN deprecated [email protected]: Use your platform's native performance.now() and performance.timeOrigin.
npm WARN deprecated [email protected]: This SVGO version is no longer supported. Upgrade to v2.x.x.
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup [
npm WARN cleanup 'D:\sites\react-fundamentals\node_modules\@cspotcode\source-map-support',
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'D:\sites\react-fundamentals\node_modules@cspotcode\source-map-support\node_modules'] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: 'EPERM',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'D:\sites\react-fundamentals\node_modules\@cspotcode\source-map-support\node_modules'npm WARN cleanup }
npm WARN cleanup ],
npm WARN cleanup [
npm WARN cleanup 'D:\sites\react-fundamentals\node_modules\@jridgewell\source-map',
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'D:\sites\react-fundamentals\node_modules@jridgewell\source-map\node_modules'] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: 'EPERM',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'D:\sites\react-fundamentals\node_modules\@jridgewell\source-map\node_modules'
npm WARN cleanup }
npm WARN cleanup ],
npm WARN cleanup [
npm WARN cleanup 'D:\sites\react-fundamentals\node_modules\eslint-plugin-react',
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'D:\sites\react-fundamentals\node_modules\eslint-plugin-react\node_modules\resolve\test\resolver\symlinked_\symlink_target'] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: 'EPERM',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'D:\sites\react-fundamentals\node_modules\eslint-plugin-react\node_modules\resolve\test\resolver\symlinked\_\symlink_target'
npm WARN cleanup }
npm WARN cleanup ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path D:\sites\react-fundamentals\node_modules\husky
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node husky install
npm ERR! node:internal/modules/cjs/loader:452
npm ERR! throw err;
npm ERR! ^
npm ERR!
npm ERR! Error: Cannot find module 'D:\sites\react-fundamentals\node_modules\please-upgrade-node\index.js'. Please verify that the package.json has a valid "main" entry
npm ERR! at tryPackage (node:internal/modules/cjs/loader:444:19)
npm ERR! at Module._findPath (node:internal/modules/cjs/loader:715:18)
npm ERR! at Module._resolveFilename (node:internal/modules/cjs/loader:1130:27)
npm ERR! at Module._load (node:internal/modules/cjs/loader:985:27)
npm ERR! at Module.require (node:internal/modules/cjs/loader:1235:19)
npm ERR! at require (node:internal/modules/helpers:176:18)
npm ERR! at Object. (D:\sites\react-fundamentals\node_modules\husky\husky.js:3:27)
npm ERR! at Module._compile (node:internal/modules/cjs/loader:1376:14)
npm ERR! at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
npm ERR! at Module.load (node:internal/modules/cjs/loader:1207:32) {
npm ERR! code: 'MODULE_NOT_FOUND',
npm ERR! path: 'D:\sites\react-fundamentals\node_modules\please-upgrade-node\package.json',
npm ERR! requestPath: 'please-upgrade-node'
npm ERR! }
npm ERR!
npm ERR! Node.js v20.10.0

npm ERR! A complete log of this run can be found in: C:\Users\Niki\AppData\Local\npm-cache_logs\2024-01-19T13_09_08_095Z-debug-0.log
οΏ½ Failure: Dependency Installation. Please review the messages above for information on how to troubleshoot and re
solve this issue.
`

My node version is
$ node -v
v20.10.0

npm install also throws these errors.

Thanks for the help!

Failure: Project Validation. Please review the messages above for information on how to troubleshoot and resolve this issue.

Running the following command: npm run validate --if-present -s
'react\react\react-fundamentals\node_modules.bin' is not recognized as an internal or external command,
operable program or batch file.
node:internal/modules/cjs/loader:1078
throw err;
^

Error: Cannot find module 'D:\npm-run-all\bin\npm-run-all\index.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
at Module._load (node:internal/modules/cjs/loader:920:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

Can only access the first module the rest doesn't play

I've purchased the course, but only the first module plays video's. I've already mailed support to [email protected] at Thu 23-May-24 13:21 but no response yet.

image

in the console I get these error:
Error: GraphQL Error (Code: 404): {"response":{"message":"Resource Not Found","error":true,"not_found":true,"status":404},"request":{"query":"\n query LessonData($slug: String!) {\n video_resource(slug: $slug) {\n slug\n subtitles_url\n lesson_view_url\n dash_url\n hls_url\n }\n }\n","variables":{"slug":"egghead-er-01-01-01-basic-js-hello-world-intro"}}}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.