Reactjs – Render React child component with conditional rendering and one general wrapping html element
I have a React component: const Options = () => { // Option logic if (isOptionOne) { return <OptionOne />; } if (isOptionTwo) { return <OptionTwo />; } if (isOptionThree) { return <OptionThree />; } return null; }; I render…