- install react devtools
- then in vite.config.ts
const profiling = isProduction && {
"react-dom/client": "react-dom/profiling",
| prettier --config .prettierrc.json --write src/**/*.jsx |
| <style> | |
| body::before { | |
| content: attr(data-state); | |
| font-size: 2rem; | |
| font-family: monospace; | |
| position: absolute; | |
| padding: 1rem; | |
| z-index: 99; | |
| right: 0; | |
| top: 50%; |