mirror of
https://github.com/bendtherules/react-fiber-traverse.git
synced 2026-08-18 22:01:49 +00:00
Add testcase - depth-7-nested-2 as a more nested case
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
// import * as PropTypes from "prop-types";
|
||||
import * as React from "react";
|
||||
|
||||
class CDepth7Nested2 extends React.Component {
|
||||
render() {
|
||||
const someValue = 5;
|
||||
|
||||
return (
|
||||
<div className="abc" data-test={[1, 2, 3, 4, someValue]}>
|
||||
<CDepth4></CDepth4>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class CDepth4 extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<div>
|
||||
<button></button>
|
||||
<CDepth1></CDepth1>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class CDepth1 extends React.Component {
|
||||
render() {
|
||||
return <div></div>;
|
||||
}
|
||||
}
|
||||
|
||||
export default CDepth7Nested2;
|
||||
Reference in New Issue
Block a user