'rules-of-hooks' ESLint rule conflicts with inline route components
When
plugin-hooks/recommended is used, the following code causes an ESLint error:Should we just never write components inline like this? Functionally it makes no difference. That would be just to appease this rule. Any recommendations?