Skip to content

Commit

Permalink
Rename React.js entrypoint to ReactClient.js
Browse files Browse the repository at this point in the history
The server entrypoint no longer depends on this module. It's now only
imported by the client. I've updated the name to reflect that it's
client-only, and can include client-only features.
  • Loading branch information
acdlite committed Jan 17, 2024
1 parent 4a072ac commit 7570348
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/react/index.classic.fb.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ export {
useSyncExternalStore,
useTransition,
version,
} from './src/React';
} from './src/ReactClient';
export {jsx, jsxs, jsxDEV} from './src/jsx/ReactJSX';
4 changes: 2 additions & 2 deletions packages/react/index.experimental.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ export {
useSyncExternalStore,
useTransition,
version,
} from './src/React';
} from './src/ReactClient';

import {useOptimistic} from './src/React';
import {useOptimistic} from './src/ReactClient';

export function experimental_useOptimistic<S, A>(
passthrough: S,
Expand Down
2 changes: 1 addition & 1 deletion packages/react/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ export {
useState,
useTransition,
version,
} from './src/React';
} from './src/ReactClient';
2 changes: 1 addition & 1 deletion packages/react/index.modern.fb.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ export {
useSyncExternalStore,
useTransition,
version,
} from './src/React';
} from './src/ReactClient';
export {jsx, jsxs, jsxDEV} from './src/jsx/ReactJSX';
2 changes: 1 addition & 1 deletion packages/react/index.stable.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ export {
useSyncExternalStore,
useTransition,
version,
} from './src/React';
} from './src/ReactClient';
File renamed without changes.

0 comments on commit 7570348

Please sign in to comment.