/
githubmirror
/
amphtml
Обзор
Документация
Войти
/
githubmirror
/
amphtml
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/preact/index.js
39 строк
780 B
Scott Rippey
✨ [Bento] Implemented bento-pan-zoom component (#37863)
19 апр 2022, 17:29
Не верифицирован
19 апр 2022, 17:29
fb56d5a
Код
Авторство
О чём код?
/** * Papers over the little differences in API surface between React and Preact. * In particular: * - Fragment behaves differently. * - React provides hydrate/render from a separate package, ReactDOM. * * @fileoverview */ // Importing directly from preact/dom is a hack to allow us to mimic the structure of react. export {hydrate, render} from 'preact/dom'; export { createElement, cloneElement, createRef, createContext, isValidElement, } from 'preact'; export { useState, useRef, useEffect, useLayoutEffect, useContext, useMemo, useCallback, useImperativeHandle, useReducer, } from 'preact/hooks'; /** * @param {*} props * @return {import('preact').ComponentChildren} */ export function Fragment(props) { return props.children; }