Skip to content

feat: Better example app #795

feat: Better example app

feat: Better example app #795

Triggered via pull request November 13, 2024 11:38
Status Success
Total duration 49s
Artifacts

lint-typescript.yml

on: pull_request
Compile TypeScript (tsc)
22s
Compile TypeScript (tsc)
Lint TypeScript (eslint, prettier)
41s
Lint TypeScript (eslint, prettier)
Fit to window
Zoom out
Zoom in

Annotations

2 warnings
Lint TypeScript (eslint, prettier): example/src/App.tsx#L26
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 “App” and pass data as props. If you want to allow component creation in props, set allowAsProps option to true.
Lint TypeScript (eslint, prettier): example/src/App.tsx#L27
Inline style: { width: 40, height: 40, backgroundColor: 'red' }