0

I have a main.js file

main.js

import React from 'react';
import { Meteor } from 'meteor/meteor';
import { render } from 'react-dom';
import { renderRoutes } from '../imports/startup/client/routes.jsx'

Meteor.startup(() => {

  render(renderRoutes(), document.getElementById('target'));


});

and an index.html file which contains the divider "target"

index.html

<head>
   <body>
     <div id="target" />
   </body>
</head>

How can I remove the HTML file and render it on the main.js file as I need it for react-helmet.

squareRoot
  • 77
  • 9

0 Answers0