mohebifar / mohebifar/react-use-context-selector
Usage
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 31
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
Hello Mohamad,
Here is how I integrated this lib into the example.
What do you think about these patterns?
Maybe you want to integrate the utils into the lib?
Generics:
https://codesandbox.io/s/common-store-ntsiq?file=/src/utils.tsx
Context creation:
https://codesandbox.io/s/common-store-ntsiq?file=/src/Gallery/Gallery.tsx
Context usage:
https://codesandbox.io/s/common-store-ntsiq?file=/src/Gallery/SearchInput/SearchInput.tsx
It is typed state, so typing state. will suggest the state properties.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the linked CodeSandbox examples, starting with src/utils.tsx, src/Gallery/Gallery.tsx, and src/Gallery/SearchInput/SearchInput.tsx. Compare the proposed generics, context creation, and context usage with the library's current API; completion would require an agreed scope for integrating these utilities, which the issue does not define.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100