Skip to content

This is a starter template built with ๐๐ž๐ฑ๐ญ.๐ฃ๐ฌ and ๐™๐ฎ๐ฌ๐ญ๐š๐ง๐. Perfect for beginners to learn basic state management in a clean and simple! ๐Ÿš€

License

Notifications You must be signed in to change notification settings

MiladJoodi/Zustand_Starter_Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

11 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Zustand Starter Project

This is a simple starter project built with Next.js 14.2 and Zustand. It provides a foundational setup to help you quickly get started with state management in Next.js applications.

Image description

Features

  • State Management: Uses Zustand for lightweight and scalable state management.
  • Local Storage Persistence: Includes the capability to persist state to localStorage.
  • Multiple Branches:
    • main: Basic Zustand implementation.
    • persist: Zustand with localStorage persistence.

Installation

  1. Clone the repository:

    git clone https://github.com/MiladJoodi/Zustand_Starter_Project.git
  2. Navigate to the project directory:

    cd Zustand_Starter_Project
  3. Install dependencies:

    npm install
  4. Run the development server:

    npm run dev

    Open http://localhost:3000 in your browser to see the app.

Branches

Main Branch

The main branch contains a basic implementation of Zustand to manage state efficiently in a Next.js environment.

Persist Branch

The persist branch adds functionality to persist state in localStorage, ensuring that your state remains intact even after a page refresh.

To switch to the persist branch, run the following command:

git checkout persist

Contribution

Feel free to open issues or submit pull requests for any improvements or suggestions. Contributions are always welcome!

Repository

Check out the project on GitHub: Zustand Starter Project


Happy coding! ๐Ÿš€

About

This is a starter template built with ๐๐ž๐ฑ๐ญ.๐ฃ๐ฌ and ๐™๐ฎ๐ฌ๐ญ๐š๐ง๐. Perfect for beginners to learn basic state management in a clean and simple! ๐Ÿš€

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published