Skip to content

Commit

Permalink
Merge branch 'canary' of github.com:vercel/next.js into canary
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Sep 15, 2021
2 parents 4b41b48 + dd4215b commit 807beac
Show file tree
Hide file tree
Showing 55 changed files with 27 additions and 971 deletions.
34 changes: 0 additions & 34 deletions examples/with-redux-code-splitting/.gitignore

This file was deleted.

29 changes: 0 additions & 29 deletions examples/with-redux-code-splitting/README.md

This file was deleted.

15 changes: 0 additions & 15 deletions examples/with-redux-code-splitting/config/redux.js

This file was deleted.

39 changes: 0 additions & 39 deletions examples/with-redux-code-splitting/containers/about.js

This file was deleted.

39 changes: 0 additions & 39 deletions examples/with-redux-code-splitting/containers/homepage.js

This file was deleted.

19 changes: 0 additions & 19 deletions examples/with-redux-code-splitting/package.json

This file was deleted.

4 changes: 0 additions & 4 deletions examples/with-redux-code-splitting/pages/about.js

This file was deleted.

4 changes: 0 additions & 4 deletions examples/with-redux-code-splitting/pages/index.js

This file was deleted.

34 changes: 0 additions & 34 deletions examples/with-redux-toolkit-typescript/.gitignore

This file was deleted.

24 changes: 1 addition & 23 deletions examples/with-redux-toolkit-typescript/README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1 @@
# Redux Toolkit TypeScript Example

This example shows how to integrate Next.js with [Redux Toolkit](https://redux-toolkit.js.org).

The **Redux Toolkit** is a standardized way to write Redux logic (create actions and reducers, setup the store with some default middlewares like redux devtools extension). This example demonstrates each of these features with Next.js

## Deploy your own

Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example):

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https://github.com/vercel/next.js/tree/canary/examples/with-redux-toolkit-typescript&project-name=with-redux-toolkit&repository-name=with-redux-toolkit)

## How to use

Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npx create-next-app --example with-redux-toolkit-typescript with-redux-toolkit-app
# or
yarn create next-app --example with-redux-toolkit-typescript with-redux-toolkit-app
```

Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
This example has been moved to [with-redux](https://github.com/vercel/next.js/tree/canary/examples/with-redux).
32 changes: 0 additions & 32 deletions examples/with-redux-toolkit-typescript/package.json

This file was deleted.

34 changes: 0 additions & 34 deletions examples/with-redux-toolkit/.gitignore

This file was deleted.

30 changes: 1 addition & 29 deletions examples/with-redux-toolkit/README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1 @@
# Redux Toolkit example

This example shows how to integrate Next.js with [Redux Toolkit](https://redux-toolkit.js.org).

The **Redux Toolkit** is intended to be the standard way to write Redux logic (create actions and reducers, setup the store with some default middlewares like redux devtools extension). This example demonstrates each of these features with Next.js

## Deploy your own

Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example):

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https://github.com/vercel/next.js/tree/canary/examples/with-redux-toolkit&project-name=with-redux-toolkit&repository-name=with-redux-toolkit)

## How to use

Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npx create-next-app --example with-redux-toolkit with-redux-toolkit-app
# or
yarn create next-app --example with-redux-toolkit with-redux-toolkit-app
```

Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).

### TypeScript Setup (optional)

If you haven't already added [TypeScript](https://www.typescriptlang.org/) to your project, follow the [steps in the Next.js documentation](https://nextjs.org/docs/basic-features/typescript). If you are new to TypeScript, go through the Next.js [learning lesson on TypeScript](https://nextjs.org/learn/excel/TypeScript).

Once TypeScript is added, follow the instructions given on the Redux Toolkit [documentation](https://redux-toolkit.js.org/tutorials/TypeScript) to set up and use Redux Toolkit and React-Redux with TypeScript
This example has been moved to [with-redux](https://github.com/vercel/next.js/tree/canary/examples/with-redux).
15 changes: 0 additions & 15 deletions examples/with-redux-toolkit/package.json

This file was deleted.

Binary file removed examples/with-redux-toolkit/public/favicon.ico
Binary file not shown.
1 change: 0 additions & 1 deletion examples/with-redux-toolkit/public/logo.svg

This file was deleted.

8 changes: 0 additions & 8 deletions examples/with-redux-toolkit/src/app/store.js

This file was deleted.

Loading

0 comments on commit 807beac

Please sign in to comment.