npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Add Button with each node on rc-tree

Hi ,
I am referring on example of rc-tree , where I need to show link or button on each node of rc-tree(TreeNode), but I am unable to show button .below is rc-tree example link.
See below my code snippet.
const customLabel = (data) => {
//if (data.type == “folder”) {

            <span style={{ color: '#EB0000' }} >X</span>

and tree node is.
return => {
if (item.children) {
if (item.type == “folder”) {
return (

                        <TreeNode title={customLabel(title)} ref={item.title} key={} >

Could you help me to solve my Issue.