-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { SSRProvider } from '@restart/ui/ssr'; | ||
import type { SSRProviderProps } from '@restart/ui/ssr'; | ||
|
||
export type { SSRProviderProps }; | ||
|
||
export default SSRProvider; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Server-side Rendering | ||
|
||
React-Bootstrap automatically generates an `id` for some | ||
components (such as `DropdownToggle`) if they are not provided. | ||
This is done for accessibility purposes. | ||
|
||
In server-side rendered applications, a `SSRProvider` must wrap | ||
the application in order to ensure that the auto-generated ids | ||
are consistent between the server and client. | ||
|
||
``` | ||
import SSRProvider from 'react-bootstrap/SSRProvider'; | ||
<SSRProvider> | ||
<App /> | ||
</SSRProvider> | ||
``` |