Skip to content

Commit

Permalink
Improve rendering as pure function of state
Browse files Browse the repository at this point in the history
Store dimensions in state
Use memoization
Wait until image load before applying initial transform
  • Loading branch information
bradstiff committed Jan 31, 2019
1 parent bc3cf5d commit 8dcdb11
Show file tree
Hide file tree
Showing 6 changed files with 5,280 additions and 7,944 deletions.
6 changes: 3 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"presets": [ "env", "react" ],
"plugins": [ "transform-object-rest-spread" ]
}
"presets": ["@babel/env", "@babel/react"],
"plugins": ["@babel/plugin-proposal-class-properties"]
}
Loading

0 comments on commit 8dcdb11

Please sign in to comment.