/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
test/development/basic/next-dynamic/components/hello-context.js
13 строк
256 B
JJ Kasper
Update test set-up to leverage playwright when able to (#28634)
13 сен 2021, 15:36
Не верифицирован
13 сен 2021, 15:36
a92a5ca
Код
Авторство
О чём код?
import React from 'react' import PropTypes from 'prop-types' export default class extends React.Component { static contextTypes = { data: PropTypes.object, } render() { const { data } = this.context return <div>{data.title}</div> } }