SolidJSS
SolidJSโ€ข3y agoโ€ข
5 replies
phungleson

Stricter JSX?

Hey peeps,

I recently upgraded to 1.7.0 and seems like there is new stricter JSX.

I read the CHANGELOG and understand the issue a bit, i.e. removing function form from JSX.Element.

How ever my code (especially in test) use function form quite a bit, like this.

<Provider>
{() => {
  actions = userContext();
  actions.doesSomethingForTesting();

  return <TestingComponent />
}}
</Provider>


What should I do make it works without changing too much code?

Thanks!
Was this page helpful?