import React from 'react'; import ReactDOM from 'react-dom'; import 'tailwindcss/tailwind.css'; import { BrowserRouter as Router, Switch, Route, } from 'react-router-dom'; import Header from './components/Header'; import Home from './containers/Home'; import Service from './lib/Service'; import { ServiceProvider } from './lib/ServiceContext'; import services from './services'; const navigation = [ { name: 'Главная', route: '/' }, ...services.map(({ name, route }) => ({ name, route: `/${route}` })), ]; const App: React.FC = () => (
{services.map(service => ( ))} ); ReactDOM.render( , document.getElementById('root'), );