/
githubmirror
/
react-beautiful-dnd
Обзор
Документация
Войти
/
githubmirror
/
react-beautiful-dnd
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
csp-server/client.js
19 строк
376 B
Alex Reardon
12.0 (#1487)
29 окт 2019, 01:40
Не верифицирован
29 окт 2019, 01:40
24a8e60
Код
Авторство
О чём код?
// @flow /* eslint-env browser */ import React from 'react'; import { hydrate } from 'react-dom'; import Sample from './app'; const root: Element | null = document.getElementById('root'); let nonce = null; const cspEl = document.getElementById('csp-nonce'); if (cspEl) { nonce = cspEl.getAttribute('content'); } if (root) { hydrate(<Sample nonce={nonce} />, root); }