神刀安全网

The React Web future has arrived it's just can't handle large forms

Hi! I’m having some perf issues with a huge form I’m dealing with.

The form has 83 fields (yeah.. I know.. but it is what it is) and typing on any input is impossible, as the input lags/hangs to the point where it becomes unusable.

For each key pressed, my component is rerendering. Is that the correct behavior?

I tested with the redux-form demo website and it lags as well if you add enough fields to it:

The React Web future has arrived it's just can't handle large forms

See how the text appear in blocks of text, instead of one key after another. I captured this with 24fps, so it’s not a gif issue.

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » The React Web future has arrived it's just can't handle large forms

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址