title: React Antd Tree : Can't convert my class component to functionnal component
body: <p>I have a provided class component and I'm triyng to convert it into a functionnal component but I get some issues..</p>
  <p><a href="https://codesandbox.io/s/hungry-moser-fhuuk?file=/index.js" rel="nofollow noreferrer">This is the class component code</a></p>
  <p><a href="https://codesandbox.io/s/hardcore-leftpad-5sqrvi?file=/index.js" rel="nofollow noreferrer">And this is my functionnal component code</a> :</p>
  <p>This is the output of my class componenent :</p>
  <p><a href="https://i.stack.imgur.com/zW03X.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zW03X.png" alt="enter image description here" /></a></p>
  <p>And when I'm trying in my functionnal component it look like that :</p>
  <p><a href="https://i.stack.imgur.com/CcsDA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CcsDA.png" alt="enter image description here" /></a></p>
  <p>When I click to validate : I just print another Tree with checked data, but in my functionnal component I get -- instead of text :(</p>
  <p>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 ?</p>