Skip to content

Commit

Permalink
Generate SimpleEventPlugin data structures at runtime (facebook#7616)
Browse files Browse the repository at this point in the history
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 :)
  • Loading branch information
vjeux authored and acdlite committed Sep 9, 2016
1 parent e382575 commit e826af9
Showing 1 changed file with 96 additions and 443 deletions.
Loading

0 comments on commit e826af9

Please sign in to comment.