Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "GitBook: [master] 25 pages modified"
This reverts commit 055c425.
- Loading branch information
1 parent
055c425
commit add133c
Showing
21 changed files
with
447 additions
and
344 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
# pull\_request\_template | ||
# Description | ||
|
||
## Description | ||
Describe the feature / improvement / bugfix you did. This will be in the release notes. | ||
Please refer to an issue number if there is one. | ||
|
||
Describe the feature / improvement / bugfix you did. This will be in the release notes. Please refer to an issue number if there is one. | ||
## Breaking changes | ||
|
||
### Breaking changes | ||
Does this include any (potentially) breaking API changes? | ||
|
||
Does this include any \(potentially\) breaking API changes? | ||
|
||
## Checklist | ||
# Checklist | ||
|
||
Make sure you check all the boxes. You can omit items that are not applicable. | ||
|
||
* [ ] Implementation for both `<Async>` and `useAsync()` | ||
* [ ] Added / updated the unit tests | ||
* [ ] Added / updated the documentation | ||
* [ ] Updated the PropTypes | ||
* [ ] Updated the TypeScript type definitions | ||
|
||
- [ ] Implementation for both `<Async>` and `useAsync()` | ||
- [ ] Added / updated the unit tests | ||
- [ ] Added / updated the documentation | ||
- [ ] Updated the PropTypes | ||
- [ ] Updated the TypeScript type definitions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,33 @@ | ||
# React Async codemods | ||
|
||
These codemods enable you to automatically upgrade your codebase to handle breaking changes in React Async's API. | ||
These codemods enable you to automatically upgrade your codebase to handle breaking changes in | ||
React Async's API. | ||
|
||
## Warning | ||
|
||
Be aware: **codemods transform your source code in place**. Make sure that your files are in version control before running a codemod. | ||
Be aware: **codemods transform your source code in place**. Make sure that your files are in | ||
version control before running a codemod. | ||
|
||
These codemods come without warranty. They will work fine most of the time, but you should always verify their output. Also, **do not run a codemod more than once.** | ||
These codemods come without warranty. They will work fine most of the time, but you should always | ||
verify their output. Also, **do not run a codemod more than once.** | ||
|
||
## Running a codemod | ||
|
||
These codemods are based on [jscodeshift](https://github.com/facebook/jscodeshift). Refer to their docs for specifics. | ||
These codemods are based on [jscodeshift](https://github.com/facebook/jscodeshift). Refer to their | ||
docs for specifics. | ||
|
||
```bash | ||
npx jscodeshift <target_dir> -t <transform_script> | ||
``` | ||
|
||
Where `<target_dir>` should be replaced with the path to your project's source directory and `<transform_script>` should be replaced by the URL of the codemod. | ||
Where `<target_dir>` should be replaced with the path to your project's source directory and | ||
`<transform_script>` should be replaced by the URL of the codemod. | ||
|
||
For example: | ||
|
||
```bash | ||
npx jscodeshift . -t https://raw.githubusercontent.com/async-library/react-async/master/codemods/v6.js | ||
``` | ||
|
||
This will apply the codemod for [v6](https://github.com/async-library/react-async/blob/master/codemods/v6.js) to the current working directory \(`.`\). | ||
|
||
This will apply the codemod for [v6](https://github.com/async-library/react-async/blob/master/codemods/v6.js) | ||
to the current working directory (`.`). |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Basic fetch with React Async | ||
|
||
This demonstrates a very simple HTTP GET using `fetch`, wrapped with React Async. | ||
|
||
<a href="https://react-async.async-library.now.sh/examples/basic-fetch"> | ||
<img src="https://img.shields.io/badge/live-demo-blue.svg" alt="live demo"> | ||
</a> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Basic fetch with useAsync hook | ||
|
||
This demonstrates how to use the `useAsync` hook. | ||
|
||
<a href="https://react-async.async-library.now.sh/examples/basic-hook"> | ||
<img src="https://img.shields.io/badge/live-demo-blue.svg" alt="live demo"> | ||
</a> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Custom React Async instance | ||
|
||
Demonstrates how to use a preconfigured React Async instance. | ||
|
||
<a href="https://react-async.async-library.now.sh/examples/custom-instance"> | ||
<img src="https://img.shields.io/badge/live-demo-blue.svg" alt="live demo"> | ||
</a> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Movie app using React Async | ||
|
||
This is a rebuild of the [React Suspense IO demo](https://reactjs.org/blog/2018/03/01/sneak-peek-beyond-react-16.html) | ||
by Dan Abramov at JSConf Iceland 2018, using React Async instead of Suspense. | ||
|
||
<a href="https://react-async.async-library.now.sh/examples/movie-app"> | ||
<img src="https://img.shields.io/badge/live-demo-blue.svg" alt="live demo"> | ||
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# React Async with Next.js | ||
|
||
This demonstrates how React Async integrates with Next.js. | ||
|
||
<a href="https://react-async.async-library.now.sh/examples/with-nextjs"> | ||
<img src="https://img.shields.io/badge/live-demo-blue.svg" alt="live demo"> | ||
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Using React Async with TypeScript | ||
|
||
This demonstrates how React Async integrates with TypeScript. | ||
|
||
<a href="https://react-async.async-library.now.sh/examples/with-typescript"> | ||
<img src="https://img.shields.io/badge/live-demo-blue.svg" alt="live demo"> | ||
</a> |