Skip to content

Commit 68011c5

Browse files
committed
add name option
1 parent fc1905f commit 68011c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ var internalHooks = [
1717

1818
function decorator (Component) {
1919
var options = {}
20+
options.name = Component.name
2021
// prototype props.
2122
var proto = Component.prototype
2223
Object.getOwnPropertyNames(proto).forEach(function (key) {

0 commit comments

Comments
 (0)