You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const[state,dispatch]=useReducer(useStateUpdater,initialState);const{ amount, from, to, convertedAmount }=state;//example of calling a dispatch function <InputBoxlabel="From"amount={amount}currencyOptions={options}onCurrencyChange={(currency)=>dispatch({type: "SET_FROM",payload: currency})}selectCurrency={from}onAmountChange={(amount)=>dispatch({type: "SET_AMOUNT",payload: amount})}/>
The text was updated successfully, but these errors were encountered:
working on project
06currencyConvertor:
state update:
sample implementation
and then in the App.jsx use something like
The text was updated successfully, but these errors were encountered: