This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "./styles.css"; | |
| import { useState } from "react"; | |
| export default function App() { | |
| const [value, setValue] = useState(""); | |
| const [result, setResult] = useState(0); | |
| function handleInput(e) { | |
| const cleaned = e.target.value.replace(/\D/g, ""); | |
| setValue(cleaned); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Description | |
| <!-- Brief description of WHAT you鈥檙e doing and WHY. | |
| A "Description" section can look something like this: | |
| Create Error UI for | |
| 1. Error from server | |
| 2. Error from client side validation | |
| 3. error not available internet | |
| Ticket : https://vtechsprint.atlassian.net/browse/BSS-89 |