import * as React from 'react'; import Box from '@mui/material/Box'; import TextField from '@mui/material/TextField'; const SelectTextFields = (props) => { const [currency, setCurrency] = React.useState('0'); props.currencies.push({ value: '0', label: ''}) props.func(currency); const handleChange = (event) => { setCurrency(event.target.value); }; return ( {props.currencies.map((option) => ( ))} ); } export default SelectTextFields /* return (
{currencies.map((option) => ( {option.label} ))} {currencies.map((option) => ( ))}
{currencies.map((option) => ( {option.label} ))} {currencies.map((option) => ( ))}
{currencies.map((option) => ( {option.label} ))} {currencies.map((option) => ( ))}
); */