how to update the new value to state ?

Open
#6 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
react, typescript
Domain
frontend

Research direction

Start with the component's onEdit callback and its current newValue and oldValue arguments. Trace how edited JSON is exposed to the parent and determine what is needed for a React state value to collect the user's changes. Done means the component can support the described form workflow, including submitting the edited JSON.

Written by the indexing model from the issue text.

Description

onEdit method seems to only provider newValue, oldValue, if don't have key, how can I update the state?
I want to use this component as a form component, so that users can edit json, submit the form, I need to use state to collect the json input by the user

Dominant language
TypeScript
Stars
420
Forks
24
PR merge metrics
No merged PRs in 30d

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.

More from uiwjs/react-json-view

All issues in uiwjs/react-json-view

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.