0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-09 11:32:39 +00:00

Shift componentWillMount call to getInitialState

This commit is contained in:
G.Ambatte
2022-03-25 16:40:41 +13:00
parent 2be365c839
commit 77e8952e8a
2 changed files with 9 additions and 8 deletions

View File

@@ -32,11 +32,14 @@ const Homebrew = createClass({
}
};
},
componentDidMount : function() {
global.account = this.props.account;
getInitialState : function(){
global.version = this.props.version;
global.account = this.props.account;
global.enable_v3 = this.props.enable_v3;
return {};
},
render : function (){
return (
<Router location={this.props.url}>