Giter Club home page Giter Club logo

thinking-in-react-higher-order-components's Introduction

Instructor: Jeremy McPeak

Using higher order components let's you enhancing React components without the constraints and problems of inheritance. If you're familiar with functional programming, you might have heard of higher order functions. Higher order components work in much the same way and they are the preferred way to share and reuse functionality for React components.

In this Coffee Break Course, Jeremy McPeak will teach you all about higher order components. You'll learn how a higher order component is just a function that takes an existing component and returns another component that wraps around it. You'll see how this is superior to inheritance and how it allows you to build enhancements or extensions that can be applied to any component. Along the way you'll see a few examples of how to code a higher order component and you'll see some real-world examples of how they can be useful.

Source Files Description

This repository contains the example source code for the course: a few simple higher order components for React and an example of how they can be used.


These are source files for the Envato Tuts+ course: Thinking in React: Higher Order Components

Available on Tuts+. Teaching skills to millions worldwide.

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.