Closed
Description
related to this #125
we cannot just use JSX.Element, because all other types like string will cause error like below now
Type 'string' is not assignable to type 'Element'
according to react js doc, https://reactjs.org/docs/typechecking-with-proptypes.html
// Anything that can be rendered: numbers, strings, elements or an array
// (or fragment) containing these types.
optionalNode: PropTypes.node,