Skip to content

Commit 9c0233b

Browse files
committed
Props should be passed through the constructor for classical components
1 parent 4eabc1f commit 9c0233b

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
@@ -52,7 +52,7 @@ function internalRender(vnode, opts, root) {
5252
}
5353
else {
5454
// class-based components
55-
let c = new nodeName();
55+
let c = new nodeName(props);
5656
c.setProps(props, NO_RENDER);
5757
rendered = c.render(c.props = props, c.state);
5858
}

0 commit comments

Comments
 (0)