react-form-builder
react-form-builder copied to clipboard
findDOMNode is depreciateed
import { useRef } from 'react';
import { ReactFormBuilder } from 'react-form-builder2';
const Information = () => {
var items = [
{
key: 'Header',
name: 'Header Text',
icon: 'fa fa-header',
static: true,
content: 'Placeholder Text...',
},
{
key: 'Paragraph',
name: 'Paragraph',
static: true,
icon: 'fa fa-paragraph',
content: 'Placeholder Text...',
},
];
return (
<div>
<ReactFormBuilder toolbarItems={items} />
</div>
);
};
export default Information;
is there a way to fix this error below?