I chose to start a new react typescript project, and found that I cannot use <>-style React fragments without setting a TypeScript configuration option.
Steps to Reproduce
Create an empty react typescript project
Try to use a React fragment as <>.
Expected Behavior
There should be no error message, and it should work.
Screenshots/Screencast
Additional Context/Questions
I can use <React.Fragment> as a workaround, but it's very common to use <></> in React projects instead, and it seems like it should be supported by default.
Description of Bug
I chose to start a new react typescript project, and found that I cannot use
<>
-style React fragments without setting a TypeScript configuration option.Steps to Reproduce
<>
.Expected Behavior
There should be no error message, and it should work.
Screenshots/Screencast
Additional Context/Questions I can use
<React.Fragment>
as a workaround, but it's very common to use<></>
in React projects instead, and it seems like it should be supported by default.