This repository contains 10 example applications demonstrating how to use Stunk with React for state management.
Stunk is a lightweight, framework-agnostic state management library. This repository showcases 10 different use cases for integrating Stunk with React.
Before running any of the example apps, ensure you have Node.js installed. Then, clone the repository and install dependencies:
# Clone the repository
git clone https://github.com/I-am-abdulazeez/stunk-examples.git
cd stunk-examples
# Install dependencies
pnpm install # or npm install or yarn installCheck the pages/ directory to see each app.
pnpm run dev # or npm run dev or yarn devA simple counter app that demonstrates basic Stunk usage.
A todo list app showcasing Stunk's state persistence and reactivity.
An app demonstrating how to manage a global theme state.
A simple authentication state example using Stunk.
An example of a shopping cart with state persistence.
Using asyncChunk to manage API calls with loading, error, and data states.
Managing form inputs and validation with Stunk.
A real-time notifications manager.
A multi-step form using Stunk to persist state between steps.
A task management board with drag-and-drop functionality.
You can also switch to other branches to see how Stunk is used in vanilla JS, vanilla TS, etc.
---------Thank You!!!---------
Contributions are welcome! Feel free to fork this repo, make improvements, and submit a pull request.
This project is licensed under the MIT License.