text: import React from 'react';
  import { hydrate, render } from 'react-dom';
  import Game from './game';
  
  const rootElement = document.getElementById('root');
  
  if (rootElement.hasChildNodes()) {
    hydrate(<Game />, rootElement);
  } else {
    render(<Game />, rootElement);
  }
  