# Function renderToStaticMarkup

- renderToStaticMarkup(element, options?): string

- Similar to `renderToString`, except this doesn't create extra DOM attributes such as `data-reactid`, that React uses internally. This is useful if you want to use React as a simple static page generator, as stripping away the extra attributes can save lots of bytes.

  #### Parameters

  - element: ReactNode
  - `Optional` options: ServerOptions

  #### Returns string

  - Defined in common/temp/node_modules/.pnpm/@types+react-dom@18.3.0/node_modules/@types/react-dom/server.d.ts:87