Skip to content

Instantly share code, notes, and snippets.

@maneeshaindrachapa
Created August 4, 2023 14:06
Show Gist options
  • Save maneeshaindrachapa/62bdf2db217c536b16126bd00f1ca2e8 to your computer and use it in GitHub Desktop.
Save maneeshaindrachapa/62bdf2db217c536b16126bd00f1ca2e8 to your computer and use it in GitHub Desktop.
App.tsx - Add empty block to raise a code smell
import React from 'react';
import logo from './logo.svg';
import './App.css';
function App() {
//'Empty block statement' code smell
try {
}
catch (e) {
}
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.tsx</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div>
);
}
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment