react-component / react-component/field-form

List render props add whole list value support

Open
#95 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1k
Forks
286
Avg merge
4d 16h
Merged PRs (30d)
1

Description

https://github.com/react-component/field-form/blob/bc56d70cd291b64c12cffac8bb265f268d630864/src/List.tsx#L107-L124
children of List could get all values from render props

<List>
  {(fields, values, operations) => (...)}
</List>

Contributor guide

No contributing guide indexed for this repository

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

Start in src/List.tsx at lines 107-124 and inspect how List's children render props are currently called. Update the render-props contract so children can receive the whole list values as the second argument, matching the shown usage. Done means a List child can access fields, values, and operations through its render arguments.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.