I need to set up two if with React this is my code:
<div>
{item?.status === "One" ||
(item?.status === "Two" && (
<Button
btn="primary" title="One text"
/>
))}
<Button btn="primary" title="Two text" />
</div>
I need to render first button if item.status === "One" or ( || ) "Two" but this is no work? Where is problem ?