text: import React from 'react';
  import ReactDOMServer from 'react-dom/server';
  
  import { App } from 'components/App';
  
  export async function serverRenderer() {
    const initialData = {
      appName: 'Lepaya Memory Game',
    };
  
    const pageData = {
      title: `Hello ${initialData.appName}`,
    };
  
    return Promise.resolve({
      initialData,
      initialMarkup: ReactDOMServer.renderToString(
        <App initialData={initialData} />
      ),
      pageData,
    });
  }
  