Skip to content

Commit dd4215b

Browse files
authored
Update Redux example to use Toolkit + update dependencies. (vercel#29104)
After talking with markerikson, I've made some updates to the Redux examples: - Updated the `with-redux` example to use the Redux Toolkit + TypeScript example - Updated dependencies of `with-redux` to work with latest testing setup - Removed `with-redux-toolkit` in favor of `with-redux` - Removed `with-redux-toolkit-typescript` in favor of `with-redux` - Removed `with-redux-code-splitting` in favor of `with-redux`
1 parent 6a9cda5 commit dd4215b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+27
-971
lines changed

examples/with-redux-code-splitting/.gitignore

Lines changed: 0 additions & 34 deletions
This file was deleted.

examples/with-redux-code-splitting/README.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

examples/with-redux-code-splitting/config/redux.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

examples/with-redux-code-splitting/containers/about.js

Lines changed: 0 additions & 39 deletions
This file was deleted.

examples/with-redux-code-splitting/containers/homepage.js

Lines changed: 0 additions & 39 deletions
This file was deleted.

examples/with-redux-code-splitting/package.json

Lines changed: 0 additions & 19 deletions
This file was deleted.

examples/with-redux-code-splitting/pages/about.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

examples/with-redux-code-splitting/pages/index.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

examples/with-redux-toolkit-typescript/.gitignore

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1 @@
1-
# Redux Toolkit TypeScript Example
2-
3-
This example shows how to integrate Next.js with [Redux Toolkit](https://redux-toolkit.js.org).
4-
5-
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
6-
7-
## Deploy your own
8-
9-
Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example):
10-
11-
[![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)
12-
13-
## How to use
14-
15-
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:
16-
17-
```bash
18-
npx create-next-app --example with-redux-toolkit-typescript with-redux-toolkit-app
19-
# or
20-
yarn create next-app --example with-redux-toolkit-typescript with-redux-toolkit-app
21-
```
22-
23-
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)).
1+
This example has been moved to [with-redux](https://github.com/vercel/next.js/tree/canary/examples/with-redux).

0 commit comments

Comments
 (0)