mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 20:37:21 +00:00
- Updated `ObjectField`, `ArrayField`, and `FieldWrapper` components to improve flexibility and integration options by supporting additional props like `wrapperProps`. - Added `JsonEditor` for enhanced object editing capabilities with state management and safety checks. - Refactored utility functions and error handling for improved stability and developer experience. - Introduced new test cases to validate `JsonEditor` functionality and schema-based forms handling.
14 lines
422 B
TypeScript
14 lines
422 B
TypeScript
import { useState } from "react";
|
|
import { JsonEditor } from "ui/components/code/JsonEditor";
|
|
import { JsonViewer } from "ui/components/code/JsonViewer";
|
|
|
|
export default function CodeEditorTest() {
|
|
const [value, setValue] = useState({});
|
|
return (
|
|
<div className="flex flex-col p-4">
|
|
<JsonEditor value={value} onChange={setValue} />
|
|
<JsonViewer json={value} expand={9} />
|
|
</div>
|
|
);
|
|
}
|