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

🔧 Fixing the demo build

Open VadimZvf opened this issue 6 months ago • 2 comments

The demo doesn't work. If we run the npm run build:demo command and if we open the resulting demo in the browser, we get a blank page with an error.

Screenshot 2024-08-17 at 12 38 34

It doesn't work because:

  1. We had a bug in the demo component, we were trying to spread a null value.
  2. CDN links were referring to react 15, this version doesn't have forwardRef yet. It was introduced in React 16.3 - https://github.com/facebook/react/blob/main/CHANGELOG.md#react-17

In this PR I'm fixing the demo build.

VadimZvf avatar Aug 17 '24 10:08 VadimZvf