Skip to content

Instantly share code, notes, and snippets.

@gladchinda
Created May 13, 2018 18:29
Show Gist options
  • Save gladchinda/e6b18e6111070feb3e45855289229612 to your computer and use it in GitHub Desktop.
Save gladchinda/e6b18e6111070feb3e45855289229612 to your computer and use it in GitHub Desktop.
import 'bootstrap/dist/css/bootstrap.min.css';
import $ from 'jquery';
import Popper from 'popper.js';
import 'bootstrap/dist/js/bootstrap.bundle.min';
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<Dropdown />, document.getElementById('root'));
registerServiceWorker();
@2JN
Copy link

2JN commented Oct 12, 2018

I was following your post on Medium to setup bootstrap in my react app, but I have an error

TypeError: Cannot set property 'emulateTransitionEnd' of undefined

I think I'm not import jquery correctly. This is my code


import App, {Container} from 'next/app'
import React from 'react'
import $ from 'jquery'
import Popper from 'popper.js'
import withReduxStore from '../with-redux-store/with-redux-store'
import { Provider } from 'react-redux'

import 'bootstrap/dist/css/bootstrap.min.css'
import 'bootstrap/dist/js/bootstrap.bundle.min'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment