Sha256: 411670ac837f78a5846665b07b1504959ea249a8855aebb206bd3d96d0fe2356

Contents?: true

Size: 330 Bytes

Versions: 5

Compression:

Stored size: 330 Bytes

Contents

import React from 'react';
import ReactDOM from 'react-dom';

import Router from 'Router';
import 'index.scss';

if (typeof window !== 'undefined') {
  global.document.addEventListener('DOMContentLoaded', () => {
    const mountNode = global.document.getElementById('react');

    ReactDOM.render(<Router />, mountNode);
  });
};

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gnarails-1.0.0 templates/react/js/packs/main.jsx
gnarails-0.9.3 templates/react/js/packs/main.jsx
gnarails-0.9.2 templates/react/js/packs/main.jsx
gnarails-0.9.1 templates/react/js/packs/main.jsx
gnarails-0.9.0 templates/react/js/packs/main.jsx