Fragments giving Unexpected token error in React 16.2
As per the documentation, the syntax <></> is not supported by all tools and they encourage you to use <React.Fragment> instead Check this documentation on Support for Fragment syntax
As per the documentation, the syntax <></> is not supported by all tools and they encourage you to use <React.Fragment> instead Check this documentation on Support for Fragment syntax
Try this instead: comingsoon={value ? 1 : 0}