stereobooster / react-snap

👻 Zero-configuration framework-agnostic static prerendering for SPAs
MIT License
5.04k stars 391 forks source link

Doesn't support fragments #393

Closed jonasdev closed 4 years ago

jonasdev commented 4 years ago

Bug Report

It doesn't support React fragments Current Behavior Works perfectly in development. Doesn't get shown when deployed

<>
  <div>
  // Will be shown correctly under dev and deploy
    {state && (<Icon />)
  </div>
  // Will be shown correctly under dev but NOT deployed
  {state && <Icon />}
</>

Expected behavior/code Expects to give the same result as development

Possible Solution

Meanwhile changing <> with <div> will fix the problem

stereobooster commented 4 years ago

No reproducible example. Will reopen as soon as somebody will post reproducible example