mohebifar / mohebifar/react-use-context-selector

Usage

Open
#3 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.