Skip to content

Commit

Permalink
Moved User, UserList and UserIndex in subfolders
Browse files Browse the repository at this point in the history
  • Loading branch information
KittyGiraudel committed May 8, 2017
1 parent e1188c2 commit 4f24e2a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import UserList from './UserList'
import UserList from '../UserList'

const users = [
{ name: 'Michael', preferredName: 'Mike', email: '[email protected]' },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import React from 'react'
import PropTypes from 'prop-types'
import User from './User'
import User from '../User'

const UserList = (props) => (
<ul>
{props.users.map((user) => (
// To know more about React keys
// https://facebook.github.io/react/docs/lists-and-keys.html
// https://facebook.github.io/react/docs/reconciliation.html#keys
<li key={user.email}>
<User {...user} />
</li>
Expand Down

0 comments on commit 4f24e2a

Please sign in to comment.