How to add binding events to elements generated by React.createElement ()

I haven"t touched react, before, and now I need to modify the code

.
React.createElement(
        "th",
        { key: key, style: { "width": col.width ? col.width : "auto" } },
        colContent,
        React.createElement(
            "i",null,""
        )
)

now I want to add a click event to the generated I tag. What should I do

Mar.12,2021

createElement () is called as follows:

  https://codepen.io/CodingMonk.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e41065-43878.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e41065-43878.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?