https://github.com/epicweb-dev/build-react-hooks
Understand how React hooks work by building them from scratch
https://github.com/epicweb-dev/build-react-hooks
epicreact-dev epicweb-dev react workshop
Last synced: 3 months ago
JSON representation
Understand how React hooks work by building them from scratch
- Host: GitHub
- URL: https://github.com/epicweb-dev/build-react-hooks
- Owner: epicweb-dev
- License: other
- Created: 2024-06-28T15:30:39.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-06T22:04:25.000Z (4 months ago)
- Last Synced: 2025-03-30T00:06:27.681Z (3 months ago)
- Topics: epicreact-dev, epicweb-dev, react, workshop
- Language: TypeScript
- Homepage: https://build-hooks.epicreact.dev
- Size: 7.67 MB
- Stars: 102
- Watchers: 3
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Build React Hooks 🪝
Understand how React hooks work by building them from scratch
React hooks are a core building block upon which we build our React apps. Understanding them at a fundamental level will help you use them more efficiently. You'll go from "it doesn't work and I don't know why" to "it works and I understand why."
[![Build Status][build-badge]][build]
[![GPL 3.0 License][license-badge]][license]
[![Code of Conduct][coc-badge]][coc]## Prerequisites
- [Experience with React hooks](https://www.epicreact.dev/hooks)
## Pre-workshop Resources
Here are some resources you can read before taking the workshop to get you up to
speed on some of the tools and concepts we'll be covering:- [Getting Closure on React Hooks](https://www.swyx.io/hooks)
## System Requirements
- [git][git] v2.18 or greater
- [NodeJS][node] v18 or greater
- [npm][npm] v8 or greaterAll of these must be available in your `PATH`. To verify things are set up
properly, you can run this:```shell
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][win-path] or
[mac/linux][mac-path].## Setup
This is a pretty large project (it's actually many apps in one) so it can take
several minutes to get everything set up the first time. Please have a strong
network connection before running the setup and grab a snack.> **Warning**: This repo is _very_ large. Make sure you have a good internet
> connection before you start the setup process. The instructions below use
> `--depth` to limit the amount you download, but if you have a slow connection,
> or you pay for bandwidth, you may want to find a place with a better
> connection.Follow these steps to get this set up:
```sh nonumber
git clone --depth 1 https://github.com/epicweb-dev/build-react-hooks.git
cd build-react-hooks
npm run setup
```If you experience errors here, please open [an issue][issue] with as many
details as you can offer.## Starting the app
Once you have the setup finished, you can start the app with:
```
npm start
```## The Workshop App
Learn all about the workshop app on the
[Epic Web Getting Started Guide](https://www.epicweb.dev/get-started).[](https://www.epicweb.dev/get-started)
[npm]: https://www.npmjs.com/
[node]: https://nodejs.org
[git]: https://git-scm.com/
[build-badge]: https://img.shields.io/github/actions/workflow/status/epicweb-dev/build-react-hooks/validate.yml?branch=main&logo=github&style=flat-square
[build]: https://github.com/epicweb-dev/build-react-hooks/actions?query=workflow%3Avalidate
[license-badge]: https://img.shields.io/badge/license-GPL%203.0%20License-blue.svg?style=flat-square
[license]: https://github.com/epicweb-dev/build-react-hooks/blob/main/LICENSE
[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square
[coc]: https://kentcdodds.com/conduct
[win-path]: https://www.howtogeek.com/118594/how-to-edit-your-system-path-for-easy-command-line-access/
[mac-path]: http://stackoverflow.com/a/24322978/971592
[issue]: https://github.com/epicweb-dev/build-react-hooks/issues/new