Skip to content

Conversation

@markusjwetzel
Copy link
Contributor

import { Navbar, Nav, NavItem } from 'react-bootstrap'; includes all react-bootstrap modules. By including the modules explicitly (i.e. import Navbar from 'react-bootstrap/lib/Navbar';), we can decrease the size of the production js-file and speed up hot reloading drastically.

`import { Navbar, Nav, NavItem } from 'react-bootstrap';` includes all react-bootstrap modules. By including the modules explicitly (i.e. `import Navbar from 'react-bootstrap/lib/Navbar';`), we can decrease the size of the production js-file and speed up hot reloading drastically.
quicksnap added a commit that referenced this pull request Jan 24, 2016
Update react-bootstrap imports
@quicksnap quicksnap merged commit bc45a02 into erikras:master Jan 24, 2016
@quicksnap
Copy link
Collaborator

Rad!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants