zekchan / react-ssr-error-boundary

34 stars 14 forks source link

Replacing div with React Fragment #8

Open krishnaglick opened 4 years ago

krishnaglick commented 4 years ago

Using div means this affects the dom. This could have unintended consequences. Replacing it with React.Fragment (<> shorthand) removes that issue.