import React, { useState } from 'react'; const RadioSelect = ({ label, repeat , name}) => { const [cLabel, setLabel] = useState(label); const [nRepeat, setRepeat] = useState(repeat); const [cName, setName] = useState(name); var rows = [], i = 0, len = nRepeat; while (++i <= len) rows.push(i); return (
{rows.map(function (i, x) { return (
  • ); })}
    ) } export default RadioSelect;