mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix Broken Links In Documentation (#28321)
## Summary I used [link-inspector](https://github.com/justindhillon/link-inspector) to find a bunch of broken links in this projects documentation. Here is what I fixed: https://www.html5rocks.com/en/tutorials/canvas/hidpi/ --> https://web.dev/articles/canvas-hidipi https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts --> https://www.w3.org/TR/custom-elements/ https://github.com/facebookarchive/fixed-data-table/blob/main/src/vendor_upstream/dom/normalizeWheel.js --> https://github.com/facebookarchive/fixed-data-table/blob/master/src/vendor_upstream/dom/normalizeWheel.js https://upload.wikimedia.org/wikipedia/commons/e/ee/Atom_%282%29.png --> https://upload.wikimedia.org/wikipedia/commons/1/1b/Atom.png ## Support my work I used [link-inspector](https://github.com/justindhillon/link-inspector) to find and fix this issue. If you find this PR useful, give the repo a ⭐
This commit is contained in:
@@ -213,7 +213,7 @@ class TextInputFixtures extends React.Component {
|
||||
|
||||
<Fixture>
|
||||
<SuspendyTree>
|
||||
<img src="https://upload.wikimedia.org/wikipedia/commons/e/ee/Atom_%282%29.png" />
|
||||
<img src="https://upload.wikimedia.org/wikipedia/commons/1/1b/Atom.png" />
|
||||
React is cool
|
||||
</SuspendyTree>
|
||||
</Fixture>
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ import {createContext} from 'react';
|
||||
// TODO (cache) Remove this cache; it is outdated and will not work with newer APIs like startTransition.
|
||||
|
||||
// Cache implementation was forked from the React repo:
|
||||
// https://github.com/facebook/react/blob/main/packages/react-cache/src/ReactCache.js
|
||||
// https://github.com/facebook/react/blob/main/packages/react-cache/src/ReactCacheOld.js
|
||||
//
|
||||
// This cache is simpler than react-cache in that:
|
||||
// 1. Individual items don't need to be invalidated.
|
||||
|
||||
@@ -21,7 +21,7 @@ export type ViewRefs = {
|
||||
hoveredView: View | null,
|
||||
};
|
||||
|
||||
// hidpi canvas: https://www.html5rocks.com/en/tutorials/canvas/hidpi/
|
||||
// hidpi canvas: https://web.dev/articles/canvas-hidipi
|
||||
function configureRetinaCanvas(
|
||||
canvas: HTMLCanvasElement,
|
||||
height: number,
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
// Adapted from: https://github.com/facebookarchive/fixed-data-table/blob/main/src/vendor_upstream/dom/normalizeWheel.js
|
||||
// Adapted from: https://github.com/facebookarchive/fixed-data-table/blob/master/src/vendor_upstream/dom/normalizeWheel.js
|
||||
|
||||
export type NormalizedWheelDelta = {
|
||||
deltaX: number,
|
||||
|
||||
@@ -3710,7 +3710,7 @@ export function pushStartInstance(
|
||||
return pushSelfClosing(target, props, type);
|
||||
}
|
||||
// These are reserved SVG and MathML elements, that are never custom elements.
|
||||
// https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts
|
||||
// https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-core-concepts
|
||||
case 'annotation-xml':
|
||||
case 'color-profile':
|
||||
case 'font-face':
|
||||
|
||||
@@ -15,7 +15,7 @@ function isCustomElement(tagName: string, props: Object): boolean {
|
||||
// These are reserved SVG and MathML elements.
|
||||
// We don't mind this list too much because we expect it to never grow.
|
||||
// The alternative is to track the namespace in a few places which is convoluted.
|
||||
// https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts
|
||||
// https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-core-concepts
|
||||
case 'annotation-xml':
|
||||
case 'color-profile':
|
||||
case 'font-face':
|
||||
|
||||
Reference in New Issue
Block a user