Skip to content
This repository was archived by the owner on Dec 16, 2021. It is now read-only.

Commit b31291c

Browse files
committed
use .apply to replace .bind
1 parent 2df04e6 commit b31291c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ let currentComponent;
218218

219219

220220
function createFactory(type) {
221-
return (...args) => createElement(type, ...args);
221+
return function () {
222+
return createElement.apply(type, arguments);
223+
};
222224
}
223225

224226

0 commit comments

Comments
 (0)