is using incorrect casing. use pascalcase for react components, or lowercase for html elements. code example
Example: is using incorrect casing. use pascalcase for react components, or lowercase for html elements.
const GraphWidget = React.createElement(PieChart);
const components = {
PieChart: PieChart
...
};
const GraphWidget = React.createElement(components['PieChart']);