Unverified Commit 6bb8407b authored by Alexander Kadyrov's avatar Alexander Kadyrov Committed by GitHub

Fix typo in usage of onError in script.md (#42368)



## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a 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 a helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm build && pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
parent 85d53718
...@@ -246,7 +246,7 @@ export default function Page() { ...@@ -246,7 +246,7 @@ export default function Page() {
<> <>
<Script <Script
src="https://example.com/script.js" src="https://example.com/script.js"
onLoad={(e) => { onError={(e) => {
console.error('Script failed to load', e) console.error('Script failed to load', e)
}} }}
/> />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment