react-json-view icon indicating copy to clipboard operation
react-json-view copied to clipboard

ref prop is somehow ignored

Open nelsieborja opened this issue 10 months ago • 1 comments

The following code gives a null value for ref.current:

const ref = useRef();
useEffect(() => {
  console.log(ref);
}, [ref]);

return (
  <JsonView
    ref={ref}
    ...
  />
)

nelsieborja avatar Aug 14 '23 14:08 nelsieborja