Sha256: 28019e635e8b286c7027b90fa88803c3fcbd282031d420d4ccc386b830394092
Contents?: true
Size: 525 Bytes
Versions: 4
Compression:
Stored size: 525 Bytes
Contents
import React from 'react' import { render } from 'react-dom' import App from '../react/components/app' import RedBox from 'redbox-react' document.addEventListener('DOMContentLoaded', () => { let reactElement = document.getElementById('app') if (reactElement) { if(window.railsEnv && window.railsEnv === 'development'){ try { render(<App />, reactElement) } catch (e) { render(<RedBox error={e} />, reactElement) } } else { render(<App />, reactElement) } } })
Version data entries
4 entries across 4 versions & 1 rubygems