Feat/pals #238
Annotations
1 error and 2 warnings
Run unit tests
Process completed with exit code 1.
|
Run ESLint:
src/screens/PalsScreen/PalsScreen.tsx#L97
Do not define components during render. React will see a new component type on every render and destroy the entire subtree’s DOM nodes and state (https://reactjs.org/docs/reconciliation.html#elements-of-different-types). Instead, move this component definition out of the parent component “PalCard” and pass data as props. If you want to allow component creation in props, set allowAsProps option to true
|
Run ESLint:
src/screens/PalsScreen/PalsScreen.tsx#L102
Do not define components during render. React will see a new component type on every render and destroy the entire subtree’s DOM nodes and state (https://reactjs.org/docs/reconciliation.html#elements-of-different-types). Instead, move this component definition out of the parent component “PalCard” and pass data as props. If you want to allow component creation in props, set allowAsProps option to true
|
Loading