Thank you for your interest in contributing to React-Mentions! This project is made possible by contributors like you, and we welcome any contributions to the code-base and the documentation.
- Ensure you have Node 22 or later.
- Enable Corepack and activate the pnpm version pinned by this repository with
corepack enable && corepack install. - Run
pnpm installto install all needed dev dependencies.
Pull requests are encouraged. If you want to add a feature or fix a bug:
- Fork and clone the repository
- Create a separate branch for your changes
- Make your changes, and ensure that it is formatted by oxfmt
- Write tests that validate your change and/or fix.
- Run
pnpm buildand then run tests withpnpm test - If coding a new feature, please add the examples to the example app (
/demo/src/examples) and add the docs to theREADME.mdfile. - Push your branch and open a PR 🚀
The repository tracks deterministic perf results in Git notes under refs/notes/perf.
- Run
pnpm perf:checkto compare your current branch against the nearest recorded baseline onorigin/master. - Run
pnpm perf:recordonly when you intend to attach a perf note to the currentHEADcommit.
Optional local Git setup for maintainers:
git config --add remote.origin.fetch +refs/notes/perf:refs/notes/perf
git config --add notes.displayRef refs/notes/perf
git config --add notes.rewriteRef refs/notes/perfWith that config in place, git log --notes=perf and git show --notes=perf <commit> will display recorded perf notes locally.