@@ -274,9 +274,10 @@ export interface DOMRenderProps<E extends keyof React.JSX.IntrinsicElements, T>
274274 * such as router links, animation libraries, and pre-styled components.
275275 *
276276 * Requirements:
277- * - You must render the expected element type (e.g. if `<button>` is expected, you cannot render an `<a>`).
278- * - Only a single root DOM element can be rendered (no fragments).
279- * - You must pass through props and ref to the underlying DOM element, merging with your own prop as appropriate.
277+ *
278+ * * You must render the expected element type (e.g. if `<button>` is expected, you cannot render an `<a>`).
279+ * * Only a single root DOM element can be rendered (no fragments).
280+ * * You must pass through props and ref to the underlying DOM element, merging with your own prop as appropriate.
280281 */
281282 render ?: DOMRenderFunction < E , T >
282283}
@@ -294,9 +295,10 @@ export interface PossibleLinkDOMRenderProps<Fallback extends keyof React.JSX.Int
294295 * Note: You can check if `'href' in props` in order to tell whether to render an `<a>` element.
295296 *
296297 * Requirements:
297- * - You must render the expected element type (e.g. if `<a>` is expected, you cannot render a `<button>`).
298- * - Only a single root DOM element can be rendered (no fragments).
299- * - You must pass through props and ref to the underlying DOM element, merging with your own prop as appropriate.
298+ *
299+ * * You must render the expected element type (e.g. if `<a>` is expected, you cannot render a `<button>`).
300+ * * Only a single root DOM element can be rendered (no fragments).
301+ * * You must pass through props and ref to the underlying DOM element, merging with your own prop as appropriate.
300302 */
301303 render ?: ( props : DetailedHTMLProps < LinkWithRequiredHref , HTMLAnchorElement > | React . JSX . IntrinsicElements [ Fallback ] , renderProps : T ) => ReactElement
302304}
0 commit comments