-
Notifications
You must be signed in to change notification settings - Fork 842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"From Currency Type" BOX OPTION is not working in your code #54
Comments
Now check: because adding new Features like Reset Button |
import { useState } from 'react' function CurrencyConvertor() { const [amount, setAmount] = useState() const currencyInfo = useCurrencyInfo(from) const options = Object.keys(currencyInfo) const swap = () => { const convert = () => { return ( <form onSubmit={(e) => { e.preventDefault(); convert()
); export default CurrencyConvertor This is the correct code. Replace it with your current app.jsx code . then it should work properly |
also there was some error in input box.try using this code |
setFrom(currency)}
selectCurrency={from}
onAmountChange={(amount) => setAmount(amount)}
/>
"Try run this code at the last after the amountDisable no need to add other line of code." |
"Your API works on localhost and can be used anywhere. However, I am unable to access your API because it is not open." |
https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@latest/v1/currencies/usd.json |
"From Currency Type" box is showing the options of different currency but when we are selecting the option it is not changing it remain on USD option only
i have resolve this bug you can check it from here
https://github.com/parthh1112/React/tree/main/11CustomHookCurrencyConverter/src
The text was updated successfully, but these errors were encountered: