-2000000 and -20000000 are the same shape at a glance, and the ledger deals in both. Display only: what leaves the input is always the raw string, so nothing upstream ever sees a comma. Partly-typed numbers survive intact -- "1." and "-" and "1.50" are all states on the way to a value, and reformatting them into something else mid-keystroke makes the field unusable. The caret is restored by counting digits rather than remembering an offset, since inserting a comma shifts every character after it and a remembered position lands one place off for the rest of the number. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| vendor | ||
| .gitignore | ||
| eslint.config.js | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| vite.config.js | ||
React + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Oxc
- @vitejs/plugin-react-swc uses SWC
React Compiler
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
Expanding the ESLint configuration
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.