Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
YYsuni committed Mar 1, 2024
1 parent e579904 commit e02eec9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ import 'react18-json-view/src/style.css'

The editor uses `eval(<input-value>)`. While in edit mode, you can enter `({})` or `([])`, which will cause the result of eval to become a new object or array.

> canary: `{}` and `[]` will be auto convert to `({})`,`([])`
### How the editor works

This component does not perform any cloning operations, so every step of the operation is carried out on the original object. If cloning is required, please handle it yourself.
Expand Down
1 change: 1 addition & 0 deletions website/src/contents/editable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export default function Editable() {
<code className='mx-0.5 rounded bg-slate-200 px-1 py-0.5 font-mono text-sm dark:bg-slate-600'>{`([])`}</code>,
which will cause the result of eval to become a new object or array.
</p>
<p>canary: `{}` and `[]` will be auto convert to `({})`,`([])`</p>
<h3 className='mt-6 text-lg font-medium'>How the editor works</h3>
<p>
This component does not perform any cloning operations, so every step of the operation is carried out on the
Expand Down

0 comments on commit e02eec9

Please sign in to comment.