From a0864161fc43686c67c6396ca6623a52d069837b Mon Sep 17 00:00:00 2001
From: "deepsource-autofix[bot]"
<62050782+deepsource-autofix[bot]@users.noreply.github.com>
Date: Fri, 5 May 2023 20:12:04 +0000
Subject: [PATCH 1/2] refactor: removes the duplicate property.
Creating JSX elements with duplicate props can cause unexpected behavior in your application. From the duplicates properties, the last value will be honored by React framework. This may cause your application to have undesired behavior.
---
javascript/packages/demo-react/src/App.js | 2 +-
javascript/packages/demo-react/src/components/hero.js | 2 +-
javascript/packages/demo-react/src/components/home.js | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/javascript/packages/demo-react/src/App.js b/javascript/packages/demo-react/src/App.js
index bcf9f1b0..873adf1f 100644
--- a/javascript/packages/demo-react/src/App.js
+++ b/javascript/packages/demo-react/src/App.js
@@ -6,7 +6,7 @@ function App() {
return (
-
+
{features.map((feature) => (
diff --git a/javascript/packages/demo-react/src/components/home.js b/javascript/packages/demo-react/src/components/home.js
index ad5ec10c..ad7ed436 100644
--- a/javascript/packages/demo-react/src/components/home.js
+++ b/javascript/packages/demo-react/src/components/home.js
@@ -14,7 +14,7 @@ export default function Home({ title, features }) {
{features.map((feature) => (
From 3ea95149c368621459b071f0bd4978bca83942b5 Mon Sep 17 00:00:00 2001
From: "deepsource-autofix[bot]"
<62050782+deepsource-autofix[bot]@users.noreply.github.com>
Date: Fri, 5 May 2023 20:12:17 +0000
Subject: [PATCH 2/2] style: Format code with prettier
---
javascript/packages/demo-react/src/App.js | 2 +-
javascript/packages/demo-react/src/components/hero.js | 1 -
javascript/packages/demo-react/src/components/home.js | 1 -
3 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/javascript/packages/demo-react/src/App.js b/javascript/packages/demo-react/src/App.js
index 873adf1f..3656c875 100644
--- a/javascript/packages/demo-react/src/App.js
+++ b/javascript/packages/demo-react/src/App.js
@@ -6,7 +6,7 @@ function App() {
return (
-
+
{features.map((feature) => (
diff --git a/javascript/packages/demo-react/src/components/home.js b/javascript/packages/demo-react/src/components/home.js
index ad7ed436..16fa69bf 100644
--- a/javascript/packages/demo-react/src/components/home.js
+++ b/javascript/packages/demo-react/src/components/home.js
@@ -14,7 +14,6 @@ export default function Home({ title, features }) {
{features.map((feature) => (