/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
status
packages/shared/createScope.js
20 строк
504 B
Dominic Gannaway
[react-interactions] Modify Scope query mechanism (#17095)
15 окт 2019, 16:57
Не верифицирован
15 окт 2019, 16:57
4cb399a
Код
Авторство
О чём код?
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * @flow */ import type {ReactScope} from 'shared/ReactTypes'; import {REACT_SCOPE_TYPE} from 'shared/ReactSymbols'; export default function createScope(): ReactScope { const scopeComponent = { $$typeof: REACT_SCOPE_TYPE, }; if (__DEV__) { Object.freeze(scopeComponent); } return scopeComponent; }