tv-1.0.x-dev/js/apps/tv/src/index.js

js/apps/tv/src/index.js
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import Tv from './Tv';
import reportWebVitals from './reportWebVitals';

const tvs = document.getElementsByClassName('tv');

for (let tv of tvs) {
  let baseUrl = tv.dataset.baseUrl || '';
  let channel = tv.dataset.channel || 1;
  ReactDOM.createRoot(tv).render(
    <React.StrictMode>
      <Tv root={tv} baseUrl={baseUrl} channel={channel} />
    </React.StrictMode>
  );
}

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc