UNPKG

react-shared-states

Version:

Global state made as simple as useState, with zero config, built-in async caching, and automatic scoping.

112 lines (72 loc) 2.59 kB
# 👥 Contributing to React shared states Thank you for your interest in contributing to this project! Open source contributions help improve projects, introduce new ideas, and build a better community. --- ## 🚨 Before You Start Before contributing, please: - Browse [existing issues](https://github.com/HichemTab-tech/react-shared-states/issues) to see if your issue or feature idea has already been raised. - If your idea or issue hasn't been addressed, feel free to [create a new issue](https://github.com/HichemTab-tech/react-shared-states/issues/new). --- ## 📄 Code of Conduct Please ensure your contributions follow these general guidelines: - Be respectful and professional at all times. - Treat everyone in the community with kindness. - Discuss constructively and respectfully. Any harassment or inappropriate behavior is strictly prohibited. --- ## ⚙️ Setting Up Your Environment To start contributing to the project, follow these steps: 1. Fork this repository on GitHub. 2. Clone your forked repository: ```sh git clone https://github.com/YOUR_GITHUB_USERNAME/react-shared-states cd react-shared-states ``` 3. Install dependencies with your preferred package manager: - npm: ```sh npm install ``` - pnpm: ```sh pnpm install ``` --- ## 🔨 Making Changes To submit a feature or bug fix, please: 1. Create a branch from the `main` branch. Name the branch according to your feature or bug fix: ```sh git checkout -b feature/CoolNewFeature ``` or for bug fixes: ```sh git checkout -b fix/bug-description ``` 2. After making your necessary changes, run relevant checks and tests to ensure everything works correctly: ```sh npm test ``` or with pnpm: ```sh pnpm test ``` 3. Stage and commit your changes clearly describing what has been changed: ```sh git add . git commit -m 'feat: Add CoolNewFeature to improve performance' ``` 4. Push your branch to your forked repo: ```sh git push origin feature/CoolNewFeature ``` --- ## 📝 Submitting a Pull Request When your changes are ready: 1. Open GitHub and navigate to your forked repository. 2. Click `Compare & pull request`. 3. Clearly explain the following in your pull request description: - **What changes you made and why they are needed.** - **Any linked relevant issues (e.g., "**Closes #number**").** 4. Wait for project maintainers review to suggest changes or to merge your PR. --- ## 📌 Commit Message Guidelines Write clear commit messages, formatted this way: