rsnext/test/integration/react-streaming-and-server-components/switchable-runtime/pages/edge.js
Shu Ding bb6ea6399d
Fix hydration issue in the switchable runtime tests (#35616)
In this test we are mainly focusing on the SSR'd result so hydration is't critical, but it will definitely help to get rid of these hydration errors.

## Bug

- [ ] Related issues linked using `fixes #number`
- [x] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`
2022-03-27 01:02:17 +00:00

18 lines
275 B
JavaScript

import Runtime from '../utils/runtime'
import Time from '../utils/time'
export default function Page() {
return (
<div>
This is a SSR page.
<br />
<Runtime />
<br />
<Time />
</div>
)
}
export const config = {
runtime: 'edge',
}