Skip to content

Commit

Permalink
Generate SimpleEventPlugin data structures at runtime
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 committed Aug 30, 2016
1 parent f7076b7 commit 5d9cd3e
Showing 1 changed file with 96 additions and 443 deletions.
Loading

0 comments on commit 5d9cd3e

Please sign in to comment.