/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
fixtures/dom/src/components/Fixture.js
22 строки
468 B
Jack Pope
Add getClientRects to fragment instances (#32660)
18 мар 2025, 20:54
Не верифицирован
18 мар 2025, 20:54
476f538
Код
Авторство
О чём код?
import PropTypes from 'prop-types'; const React = window.React; const propTypes = { children: PropTypes.node.isRequired, }; class Fixture extends React.Component { render() { const {children} = this.props; return <div className="test-fixture">{children}</div>; } } Fixture.propTypes = propTypes; export default Fixture; Fixture.Controls = function FixtureControls({children}) { return <div className="test-fixture__controls">{children}</div>; };