'React Antd Tree : Can't convert my class component to functionnal component
I have a provided class component and I'm triyng to convert it into a functionnal component but I get some issues..
This is the class component code
And this is my functionnal component code :
This is the output of my class componenent :
And when I'm trying in my functionnal component it look like that :
When I click to validate : I just print another Tree with checked data, but in my functionnal component I get -- instead of text :(
I've just create a function to hide the checkbox in subchilds, otherwise it's the same things. Have you an idea what is the problem please ?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|


