Skip to content

Commit 386db62

Browse files
authored
Merge pull request #5 from kopach/child
fix(react-dom-child): make child element to work with react
2 parents a001e94 + 648042a commit 386db62

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/build.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/react-dom-child.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import createRef from "react-create-ref";
88
export class ReactDomChild extends React.Component {
99
ref = createRef();
1010
componentDidMount() {
11-
const childNodes = this.props.children[0];
11+
const childNodes = this.props.children;
1212
this.ref.current.replaceWith(...childNodes);
1313
}
1414
render() {

0 commit comments

Comments
 (0)