https://github.com/akunna1/phone-number-formatter
Formatting phone numbers as (XXX)-XXX-XXX using react.js
https://github.com/akunna1/phone-number-formatter
reactjs
Last synced: 7 months ago
JSON representation
Formatting phone numbers as (XXX)-XXX-XXX using react.js
- Host: GitHub
- URL: https://github.com/akunna1/phone-number-formatter
- Owner: akunna1
- Created: 2024-11-06T16:14:13.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-11-06T18:48:28.000Z (11 months ago)
- Last Synced: 2025-01-31T22:07:19.852Z (8 months ago)
- Topics: reactjs
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#### Starting react app
- npm create vite@latest formatter --template react
- cd formatter
- npm install
- npm run dev#### Arrow Function vs. Traditional Function
- Arrow function:
const handlePhoneChange = (event) => {
// Function body
};- Traditional function:
function handlePhoneChange(event) {
// Function body
}