import React from "react"; import { BasicQuestionType } from "../types"; type Props = { question: BasicQuestionType; }; export const RRadioForm = ({ question }: Props) => { const result = question.answers.reduce((acc: any, cur: any) => { acc[cur] = (acc[cur] || 0) + 1; return acc; }, {}); // console.log(result); return (