score:3

Accepted answer

You should not invoke your components directly, but pass them into createElement function:

return (
  <td>
    {createElement(component, {
      ...field.props,
      checked: entry[field.props.checked],
      entry: entry,
    })}
  </td>
);

You can also use JSX here, but with JSX you will have to name your component property with capital letter, so transformation would not confuse it with html or custom element.


Related Query

More Query from same tag