react-json-view
react-json-view copied to clipboard
ref prop is somehow ignored
The following code gives a null
value for ref.current
:
const ref = useRef();
useEffect(() => {
console.log(ref);
}, [ref]);
return (
<JsonView
ref={ref}
...
/>
)