Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Newslist component #17

Merged
merged 7 commits into from
Aug 2, 2018
Merged

Add Newslist component #17

merged 7 commits into from
Aug 2, 2018

Conversation

pawbs
Copy link

@pawbs pawbs commented Jul 23, 2018

todo: add tests and pull out newslist into separate folder (not sure about folder structure for compoennts?)

PR for Issue: #2

@pawbs pawbs changed the title add newslist component add newslist component #2 Jul 23, 2018
@annsonn
Copy link
Contributor

annsonn commented Jul 23, 2018

You don't need to put it in it's own folder yet, you can just pull it out into its own file like 'NewsListTable.js'

@annsonn annsonn changed the title add newslist component #2 GH-2 - add newslist component Jul 23, 2018
@annsonn annsonn changed the title GH-2 - add newslist component Add Newslist component Jul 23, 2018
src/App.js Outdated
return (
<div>
<h1>News List</h1>
{this.state.news.map((item, index) => (
Copy link
Contributor

Choose a reason for hiding this comment

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

It might be a good idea to create a function renderNewsList(), for instance. It's always nicer to keep the render function very simple. Easier to test too :)

@JLBoor
Copy link
Contributor

JLBoor commented Jul 31, 2018

Merging into master.. I'll keep you posted.

@JLBoor JLBoor merged commit 56d2897 into intelliware-coe-web:master Aug 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants