Share the React state between any components, Page and route with the URL query parameters in Next.js/React.js.
git clone https://github.com/officialrajdeepsingh/state-management-with-url.git
Next Install npm package with following command.
npm install
# or
yarn install
# or
pnpm install
Last run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx
. The page auto-updates as you edit the file.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.