Clean up benchmark exports and PropTypes import

This commit is contained in:
Nicolas Gallagher
2017-07-09 18:42:42 -07:00
parent 8f56454ed7
commit 2607cb25ab
35 changed files with 68 additions and 67 deletions
+6 -2
View File
@@ -5,7 +5,9 @@ const node = document.querySelector('.root');
const createRenderBenchmark = ({ description, getElement, name, runs }) => () => {
const setup = () => {};
const teardown = () => ReactDOM.unmountComponentAtNode(node);
const teardown = () => {
ReactDOM.unmountComponentAtNode(node);
};
return benchmark({
name,
@@ -13,7 +15,9 @@ const createRenderBenchmark = ({ description, getElement, name, runs }) => () =>
runs,
setup,
teardown,
task: () => ReactDOM.render(getElement(), node)
task: () => {
ReactDOM.render(getElement(), node);
}
});
};