Skip to content

Commit

Permalink
refactor: removes the duplicate property.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
deepsource-autofix[bot] authored Sep 16, 2024
1 parent cab3713 commit 0cfd082
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion javascript/packages/demo-react/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" alt="logo_" />
<img src={logo} className="App-logo" alt="logo" />
<Home title="Welcome to DeepSource Enterprise" isHero />
<a
className="App-link"
Expand Down
2 changes: 1 addition & 1 deletion javascript/packages/demo-react/src/components/hero.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function Home({ title, features }) {
<Hero
className="bg"
title="DeepSource is how you write clean and secure code"
title=""

/>
<ul>
{features.map((feature) => (
Expand Down
2 changes: 1 addition & 1 deletion javascript/packages/demo-react/src/components/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function Home({ title, features }) {
<Hero
className="bg"
title="DeepSource is how you write clean and secure code"
title=""

/>
<ul>
{features.map((feature) => (
Expand Down

0 comments on commit 0cfd082

Please sign in to comment.