Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1014 Bytes

README.md

File metadata and controls

45 lines (33 loc) · 1014 Bytes

Deploy to now

Unstated example

How to use

Download manually

Clone the repo:

git clone https://github.com/bennygenel/nextjs-with-unstated
cd nextjs-with-unstated

Install it and run:

npm install
npm run dev
# or
yarn
yarn dev

Deploy it to the cloud with now (download)

now

The idea behind the example

This example shows how to integrate Unstated in Next.js. For more info about Unstated you can visit here. The example is basically same as redux example

Unstated is designed to build on top of the patterns already set out by React components and context.

It has three pieces:

  • Container

  • <Subscribe>

  • <Provider>