React AntD table nesting problem

react AntD table nesting problem

Target effect

import React, { PureComponent, Fragment } from "react";
import { Table,Button} from "antd";

export default class CauseTable extends PureComponent {


}

:

:

Mar.27,2022

you have children in your dataSource data. By default, you will use children to render
method 1, change children to another name
method 2, display childrenColumnName , and change childrenColumnName to children

.
  

after debugging, it is true that antD renders children again with a tree structure by default

.
Menu