Changing import from handsontable/react to handsontable/react-wrapper

I am playing around with the difference between the two imports and found that when changing from react to react-wrapper the property I have set for table renderer is not valid.

Before I just did this:

renderer={“html”}

But it seems I have an error with that:

Type ‘string’ is not assignable to type ‘ComponentType | undefined’.

From the documentation I’ve looked over it seems everything tells me to create a custom render object, but I am wondering if thats necessary since I didn’t do it before and just used the string “html”. Can you offer some guidance on this please?

Hi @rhaas

We have identified an issue when table does not load and we get an TypeError: Cannot read properties of undefined (reading 'ariaTags') error. It happens when a custom renderer is used on the instance level within the new react-wrapper.

Please check if using the same for example in ‘columns’ or ‘cells’ settings solves the issue.

Aleksandra,

The error I see is at design time not run time. It came up when I changed my import to react-wrapper.
I do not use the columns or cells setting because the columns are dynamic so we do not have a hardcoded list of them.