Thanks for v0.31- It’s looking really nice !!
I’m afraid I don’t understand how to use Cells in a Typescript RW app
I include them as any other component (I don’t know why I have to include the component file inside the component folder – I’m sure there’s a better way)
import * as TestCell from 'src/components/TestCell/TestCell'
and then I include them in the render
<TestCell />
and I get an error: JSX element type 'TestCell' does not have any construct or call signatures.
I’m getting to really like cells, (and exfiltration of data from them is somehow easier now, I only have to wrap a setTimeout around any setState called from their Success method now) but I fear I still am using them somehow wrongly…
With more complex cells that need inputs I get errors that complain about the parameters
<TheRegistrationCell
kind={accountType}
name={description.name}
phone={description.phone}
email={description.email}
address={description.address}
exfiltrate={handleRegister} />
if I change the import to a require it’s quiets all the warning/errors
const TestCell = require('src/components/TestCell/TestCell')
And the runtime error is then: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object
I feel a little lost here…