mirror of
https://github.com/bendtherules/react-fiber-traverse.git
synced 2026-08-18 13:52:36 +00:00
Add testcase - traverse-nested misc
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// import * as PropTypes from "prop-types";
|
||||
import * as React from "react";
|
||||
|
||||
class CDepth2Nested1 extends React.Component {
|
||||
render() {
|
||||
return <CDepth0></CDepth0>;
|
||||
}
|
||||
}
|
||||
|
||||
class CDepth0 extends React.Component {
|
||||
render() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
export default CDepth2Nested1;
|
||||
@@ -0,0 +1,20 @@
|
||||
// import * as PropTypes from "prop-types";
|
||||
import * as React from "react";
|
||||
|
||||
class CDepth3Nested1 extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<div>
|
||||
<CDepth0></CDepth0>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class CDepth0 extends React.Component {
|
||||
render() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
export default CDepth3Nested1;
|
||||
Reference in New Issue
Block a user