An open API service indexing awesome lists of open source software.

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

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
}