I am new to react.js, I have a list of names to display as a button.
const test: React.FC<IProps> = () => {
const buttons1= () => {
for(let i=0; i<good.length; i++){
<TextButton
label={good[i].name}
onClick={}
/>
}
};
return(
<div>
{buttons1()}
<TextButton
label={"test1"}
onClick={}
/>
</div>
)
}
This code is successfully compiled, but it the textbutton is not reflect in the page,
Thanks