Skip to content

Redux Weather Submission#80

Open
evanhendrick wants to merge 2 commits intoprojectshft:masterfrom
evanhendrick:master
Open

Redux Weather Submission#80
evanhendrick wants to merge 2 commits intoprojectshft:masterfrom
evanhendrick:master

Conversation

@evanhendrick
Copy link

No description provided.


export const GET_CITY = 'GET_CITY';

const apiKey = '536b99823dd5364f3a29be3867644595';
Copy link

Choose a reason for hiding this comment

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

apiKey should not be hard coded like this - better to use a .env file

setCity('');
};

function renderWeather() {
Copy link

Choose a reason for hiding this comment

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

Stay consistent with your functions (expressions vs declarations)

);
}

function renderPressure(pressure) {
Copy link

Choose a reason for hiding this comment

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

would be cleaner to move the render functionality to its own component

</div>
);
}
if (!_.isEmpty(weather)) {
Copy link

Choose a reason for hiding this comment

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

nice use of lodash

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