Engineering practice
Quantity validation
Accept whole decimal quantities from 0 to 999; reject invalid or unsafe input.
Formal Syntax & Structure
react syntaxreact
parseQuantity(raw)Working Example
Example Snippetreact
parseQuantity("0") // 0Accept whole decimal quantities from 0 to 999; reject invalid or unsafe input.
parseQuantity(raw)parseQuantity("0") // 0