From 888561fbf8ef37de5196a135f295837260d89407 Mon Sep 17 00:00:00 2001 From: Vadim Zainetdinov Date: Sat, 17 Aug 2024 12:26:47 +0200 Subject: [PATCH 1/3] :bug: Removing spread operator We were trying to spead a null value --- demo/src/js/index.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/demo/src/js/index.js b/demo/src/js/index.js index 8d1fb20..4155fb7 100644 --- a/demo/src/js/index.js +++ b/demo/src/js/index.js @@ -2,13 +2,10 @@ import React from 'react'; import ReactJsonDemo from './components/Demo'; //index entrypoint component -export default class extends React.PureComponent { - - render() { - const {...props} = this.state; - return (
+export default function Demo() { + return ( +
-
); - } - +
+ ); } From b633f52c85fe4fef5f01947ffda632450e302739 Mon Sep 17 00:00:00 2001 From: Vadim Zainetdinov Date: Sat, 17 Aug 2024 12:27:46 +0200 Subject: [PATCH 2/3] :wrench: Using correct links for CDN Using react 16 --- demo/dist/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/dist/index.html b/demo/dist/index.html index c075a27..5a21a00 100644 --- a/demo/dist/index.html +++ b/demo/dist/index.html @@ -20,8 +20,8 @@ - - + +