Lint and compiler
static-components
A nested component declaration can create a new component type every render and reset its state. Declare component types outside their parents and pass props.
Formal Syntax & Structure
react syntaxreact
react-hooks/static-componentsWorking Example
Example Snippetreact
function Row({name}){return <li>{name}</li>}export default function App({name}){return <ul><Row name={name}/></ul>}