ExpenseList.js 를 생성해서 조건 명령문에 따른 코드를 따로 구분했다 ExpenseList.js import ExpenseItem from './ExpenseItem'; import './ExpenseList.css'; const ExpenseList = (props) => { let expensesContent = No expenses found.; if (props.items.length === 0) { return Found no expenses. } return { props.items.map((expense) => ( )) } } export default ExpenseList; Expenses.js import ExpensesFilter from "./ExpensesFilter"; ..