Git Product home page Git Product logo

technigo / react-advanced-hooks-boiler-plate Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 11.0 48 KB

Technigo Student's Advanced Hooks Boilerplate: Dive deep into React hooks! Explore working examples of useRef, useMemo, useLayoutEffect, useReducer, and custom hooks to supercharge your learning journey.

Home Page: https://react-advanced-hooks-boiler-plate.netlify.app/

JavaScript 95.37% HTML 1.32% CSS 3.31%
advanced-hooks custom-hooks-in-react hooks-react react uselayouteffect usememo usereducer useref

react-advanced-hooks-boiler-plate's Introduction

Project Banner Image

React Advanced Hooks Boilerplate

Welcome to the React Advanced Hooks Boilerplate!

This repository is designed to provide a solid starting point for working with advanced React hooks, including useRef, useReducer, useLayoutEffect, and custom hooks. Navigate through various examples and understand the practical implementation of these hooks in a React application.

Demo

You can check out a Demo of this boilerplate here.

Getting Started

  1. Clone the repository to your local machine.
  2. Install the required dependencies using npm install.
  3. Start the development server using npm run dev.

Overview

This boilerplate is structured to give you a hands-on experience and understanding of some of the advanced hooks in React. Each hook is demonstrated with practical examples to showcase its utility and implementation in real-world applications.

useRef Hook

useReducer Hook

  • Purpose: Manage state logic in components with a reducer function for more predictable state transitions.
  • Examples:

useLayoutEffect Hook

  • Purpose: Perform synchronous, side-effects that need to be executed before the DOM is painted.
  • Examples:

Custom Hooks

  • Purpose: Reuse stateful logic and side effects across components.
  • Examples:

Tip: Before you decide to delete all components and start from scratch, we suggest examining them closely to grasp their structure. They can act as a blueprint for your future work.


We hope this guide helps you navigate and make the most out of this boilerplate.

Happy coding, Technigo students! ❤️

react-advanced-hooks-boiler-plate's People

Contributors

dzc1 avatar theresbl avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.