Use Component State Initializers
lessonDuration 2m 46sFree
In this lesson, we'll allow users to initialize our component's state with their own defaults and support a reset functionality to reset to the initial state.
Browse
Find courses, lessons, articles, talks, and podcasts.
238 resources
Showing 169–192 · Page 8 of 10
lessonDuration 2m 46sFree
In this lesson, we'll allow users to initialize our component's state with their own defaults and support a reset functionality to reset to the initial state.
lessonDuration 8m 16sFree
There are a few things you may be used to doing in CSS that you’ll need to learn how to accomplish using CSS in JS (in particular with glamor and glamorous). In this lesson we’ll go through a few examples.
lessonDuration 1m 43sFree
In this lesson we’ll learn about the things you need installed and setup to start writing React components with glamorous.
lessonDuration 5m 9sFree
Glamorous works great with whatever CSS framework you’re currently using. In this lesson we’ll see how to make glamorous integrate with your existing CSS solution so you can migrate overtime.
lessonDuration 1m 34sFree
In this lesson we’ll look at the amazing open source tool [ASTExplorer.net](https://astexplorer.net/). We’ll learn how we can use it to learn about ASTs generated by different tools. We’ll also see how it can be used to help us write plugins for ESLint, Babel, and other tools. The noted ESTree specification can be found on [GitHub](https://github.com/estree/estree).
lessonDuration 1m 54sFree
In this lesson, we’ll learn about the key technology used by JavaScript engines and tools like ESLint and Babel to run, lint, and modify your source code. The JavaScript Abstract Syntax Tree (or AST for short) is a JSON representation of your code that is represented by a tree structure. In this lesson we’ll explore that tree structure to get a feel for how code translates to an AST.
lessonDuration 1m 49sFree
If you make a mistake with a commit and need to make changes or you'd like to update the commit message of the most recent comment, you can do this with the `git commit --amend` command.
lessonDuration 1m 13s
Let’s look at the GitHub commits and list of contributors now that our pull request has been merged. And we’ll wrap this series up with a few tips. Feel free to practice on [stack-overflow-copy-paste](https://github.com/eggheadio-github/stack-overflow-copy-paste), and see the Pull Request demonstrated in this lesson [here](https://github.com/eggheadio-github/stack-overflow-copy-paste/pull/9).
lessonDuration 2m 53s
Often, project maintainers prefer that a single pull request be represented by a single commit. It makes the git history cleaner and easier to understand. So before your pull request is merged you’ll want to do an interactive git rebase to squash all of your commits and fix your commit message.
lessonDuration 3m 39s
Sometimes your Pull Request can fall behind master in a repository and occasionally that will result in merge conflicts which you have to manage yourself. In this lesson we’ll learn how to use `git rebase` to update our pull request branch to the latest version of master and resolve merge conflicts with git.
lessonDuration 2m 57s
Once you’ve made your code updates locally, all you need to do is commit those changes and push that commit to your Pull Request branch. In this lesson we’ll also talk about how to skip git hooks that may be included in the project when you just need help.
lessonDuration 2m 21s
It’s not often that you’ll get a Pull Request on GitHub just right the first time you try. You generally will iterate with the project maintainer on your solution before your PR gets merged. In this lesson, we’ll explore some of the tools that projects use to manage contributions to open source projects on GitHub.
lessonDuration 6m 19s
Often when making a change, you want to verify your approach with the maintainer or ask them for help. In this lesson we’ll make a change and commit that WIP change. Then we’ll create a pull request requesting help from the project maintainer.
lessonDuration 1m 18s
Before you start making your changes, you often need to set up your environment for the changes. This is where the repositories' contributing instructions come in really handy. In this lesson we’ll get our environment set up and ready for changes.
lessonDuration 2m 41s
You cannot push code to repositories that you don’t own or have sufficient permission to. So instead, you make your own copy of the repository by “forking” it. You are then free to make any changes you wish to your repository.
lessonDuration 2m 15s
When you find a bug in an open source project, you know exactly the change you want to make. Other times you just want to find a way to contribute. Either way, you’ll need to know how the project maintainers want to run the project and work with them to come up with an implementation for the fix/feature. And if you don't even know what project to start contributing to, check out [this blogpost](https://medium.com/@kentcdodds/what-open-source-project-should-i-contribute-to-7d50ecfe1cb4) for inspiration on how to identify a good project to contribute to.
lessonDuration 3m 34s
Anytime you push code to GitHub, you must be authenticated so GitHub knows you are authorized to make changes. In this lesson we’ll learn how to authenticate with GitHub using SSH so we don’t have to enter our username and password each time we push code to GitHub.
lessonDuration 2m 15s
Let’s install the Git Source Control Management software so we can interact with repositories hosted on GitHub.
lessonDuration 4m 7s
The basic unit of GitHub is a repository. This is where your code is stored and GitHub allows you to interact with others and with the code in great ways. In this lesson we talk about Watching, Starting, and Forking a repository. We also cover GitHub issues and pull requests and various other stats about a GitHub repository.
lessonDuration 1m 47s
GitHub adds a lot of great features on top of git repository hosting. We’ll take a look at some of these features including: - How to create a repository and organization on GitHub - How to explore and find projects on GitHub - About GitHub gists - Searching pull requests and issues on GitHub
lessonDuration 47s
In this lesson we’ll talk about what GitHub is and how to sign up for a GitHub account so you can contribute to an open source project on GitHub.
lessonDuration 5m
Babel 6 was a major change in how Babel works and is configured. In this lesson, find out how to update this Angular application built with Webpack to use Babel 6. For more information about how modules have changed in Babel 6, see [this blogpost](https://medium.com/@kentcdodds/misunderstanding-es6-modules-upgrading-babel-tears-and-a-solution-ad2d5ab93ce0) by Kent.
lessonDuration 3m 38s
By default, Travis will build all branches, tags, and Pull Requests. Because we're building our master branch before we release, we don't need Travis building our releases. Also, we don't care to have Travis build all the branches. So we're going to limit Travis to only build our master branch and Pull Requests by configuring travis via our `.travis.yml` file.
lessonDuration 5m 2s
By adding ES6 support to our source code, we need to add that same support to our tests so we can consume that synatx. This is quite easy with the `--compilers` flag for `Mocha`.