github.com/quickfeed/quickfeed@v0.0.0-20240507093252-ed8ca812a09c/public/src/index.tsx (about)

     1  import React from 'react'
     2  import { render } from 'react-dom'
     3  
     4  import { createOvermind } from 'overmind'
     5  import { Provider } from 'overmind-react'
     6  import { config } from './overmind'
     7  import App from './App'
     8  import { BrowserRouter } from 'react-router-dom'
     9  import './style.scss'
    10  
    11  (BigInt.prototype as any).toJSON = function () { // skipcq: JS-0323
    12      return this.toString()
    13  }
    14  
    15  const overmind = createOvermind(config, {
    16      // Enable devtools by setting the below to ex. 'devtools: "localhost:3301"'
    17      // then run 'npx overmind-devtools@latest' to start the devtools
    18      devtools: "localhost:3301",
    19  })
    20  
    21  
    22  render((
    23      <Provider value={overmind}>
    24          <BrowserRouter>
    25              <App />
    26          </BrowserRouter>
    27      </Provider>
    28  ), document.getElementById('root'))