Skip to content

Commit

Permalink
chore(reactant): update
Browse files Browse the repository at this point in the history
  • Loading branch information
unadlib committed Sep 9, 2024
1 parent d79f658 commit 3ed41ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Binary file removed packages/.DS_Store
Binary file not shown.
8 changes: 3 additions & 5 deletions packages/reactant-ssr/src/createServerApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ export const createServerApp = <T, S extends any[], R extends Renderer<S>>(
render: (element) => element,
});
const AppComponent = (appProps: AppProps) => {
return (bootstrap as (
Component: FunctionComponent<any>
) => JSX.Element)((Component: FunctionComponent<AppProps>) => (
<Component {...appProps} />
)) as JSX.Element;
return (bootstrap as (Component: FunctionComponent<any>) => JSX.Element)(
(Component: FunctionComponent<AppProps>) => <Component {...appProps} />
) as JSX.Element;
};
return {
bootstrap: AppComponent,
Expand Down

0 comments on commit 3ed41ee

Please sign in to comment.