src/boot.jsx
import 'uswds'
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import Main from './components/Main/Main'
import store from './services/store'
import tabology from './plugins/tabology'
import './eqip.scss'
// This polyfill gives us more control over smooth scrolling throughout the application
import smoothscroll from 'smoothscroll-polyfill'
smoothscroll.polyfill()
var targetNode = document.getElementsByTagName('body')[0]
var config = { attributes: true }
var callback = function(mutationList) {
tabology()
}
var observer = new MutationObserver(callback)
observer.observe(targetNode, config)
const components = (
<Provider store={store}>
<Main />
</Provider>
)
const app = document.getElementById('app')
ReactDOM.render(components, app, tabology)