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

Commit c0a3d3a

Browse files
committed
remove usage of .bind with additional parameter
Before ECMAScript 5, libraries define .bind without additional parameter. To work with these libraries, change this specific usage of bind
1 parent 1c05330 commit c0a3d3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

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

219219

220220
function createFactory(type) {
221-
return createElement.bind(null, type);
221+
return (...args) => createElement(type, ...args);
222222
}
223223

224224

0 commit comments

Comments
 (0)