Skip to content

Upgraded React-Bootstrap to the latest version and ES6-ified some code#9862

Merged
aoby merged 2 commits into
stagingfrom
pd-workshop-bootstrap-upgrade
Aug 5, 2016
Merged

Upgraded React-Bootstrap to the latest version and ES6-ified some code#9862
aoby merged 2 commits into
stagingfrom
pd-workshop-bootstrap-upgrade

Conversation

@aoby

@aoby aoby commented Aug 5, 2016

Copy link
Copy Markdown
Contributor

Note - some controls in react-bootstrap have changed, notably <Input> is now FormControl, and some of the features that were formerly set as properties of the Input are now handlded by their own components surrounding the FormControl (e.g. FormGroup, ControlLabel, HelpBlock). See https://react-bootstrap.github.io/components.html#forms

This is a straight upgrade with no functionality difference.

Comment thread apps/package.json Outdated
"react": "15.2.1",
"react-addons-test-utils": "15.2.1",
"react-bootstrap": "0.29.5",
"react-bootstrap": "^0.30.1",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we tie to exactly "0.30.1" so that we dont have to worry about different engineers ending up on slightly different versions?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call

@Bjvanminnen

Copy link
Copy Markdown
Contributor

lgtm. very cool seeing this stuff become more ES6y :)

- changed all vars to const (where possible) or let
- removed () from single-param arrow functions
- removed function declartions from render method
@aoby aoby merged commit 000747e into staging Aug 5, 2016
@aoby aoby deleted the pd-workshop-bootstrap-upgrade branch August 9, 2016 18:26
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