Skip to content

Commit 3061f8d

Browse files
committed
doc: update example.
1 parent 8189b51 commit 3061f8d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,11 +316,11 @@ const object = {
316316
integer: 42,
317317
}
318318

319-
function value({ type, children, keyName, visible, ...props }) {
320-
if (type === 'string' && /\.(jpg)$/.test(children)) {
319+
function value({ type, children, value, keyName, visible, ...props }) {
320+
if (type === 'string' && /\.(jpg)$/.test(value)) {
321321
return (
322322
<span {...props}>
323-
<img src={children} height="36" />
323+
<img src={value} height="36" />
324324
</span>
325325
);
326326
}

0 commit comments

Comments
 (0)