Add Button with each node on rc-tree

(Dineshtw) #1

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.