react-json-view
react-json-view copied to clipboard
🔧 Fixing the demo build
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.
It doesn't work because:
- We had a bug in the demo component, we were trying to spread a null value.
- CDN links were referring to react 15, this version doesn't have
forwardRefyet. 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.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| react-json-view | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 22, 2024 8:11pm |
https://github.com/user-attachments/assets/75124729-f995-4e70-b182-54965f447c28
An example of the fix