Closed as not planned
Closed as not planned
Description
React version: latest
demo:https://codesandbox.io/s/cranky-framework-p7r5vb?file=/src/App.tsx
The current behavior
jsx syntax does not work correctly.
<>
<IsolateRender useRender={() => useCustomeHook()} /> // error !
<IsolateRender {...{ useRender: () => useCustomeHook() }} /> no error!
</>
it shows this error:
React Hook "useCustomeHook" cannot be called inside a callback. React Hooks must be called in a React function component or a custom React Hook function. (react-hooks/rules-of-hooks)
The expected behavior
jsx syntax should work as object syntax.