I want to change my wrapper tag around content. Currently I am doing it like this:
{!filter && <Styled.DropdownMenu>
{Options}
</Styled.DropdownMenu>}
{filter && <Dropdown.Menu as={CustomMenu}>
{Options}
</Dropdown.Menu>}
Which works. But since the content Options is always going to be same. I was wondering if there is a way to dynamically change just the wrapper tag in same line without repeating the code for {Options}.