Skip to content

Commit c0b4659

Browse files
committed
Generate SimpleEventPlugin data structures at runtime
We used to copy and paste the same big blob many times in order for it to work with keyOf which is no longer a constraint. This pull request takes a list of all the events as string and generate those data structures at runtime. It reduces the size of React by 1k post gzip and flow is able to extract the structure out of it :)
1 parent 4c365ea commit c0b4659

1 file changed

Lines changed: 96 additions & 443 deletions

File tree

0 commit comments

Comments
 (0)