10.배열 렌더링하기
리액트에서 배열을 렌더링하는 방법 const users = [ { id: 1, username: 'velopert', email: 'public.velopert@gmail.com' }, { id: 2, username: 'tester', email: 'tester@example.com' }, { id: 3, username: 'liz', email: 'liz@example.com' } ]; 이 내용을 컴포넌트로 렌더링한다면? 가장 기본적인 방법은 비효율적이지만, 그냥 그대로 코드를 작성하는 것 UserList.js import React from 'react'; function UserList() { const users = [ { id: 1, username: 'velopert', email: 'pub..
2021. 7. 20.