인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

mingukang's profile image
mingukang

asked

The Complete Guide to Vue.js - Practical Concepts Learned Through Practice and Refactoring

Introduction to private repositories and description of the View CLI

Cannot use v-for on stateful component root element because it renders multiple elements. 가 뜹니다.

Written on

·

651

1

Cannot use v-for on stateful component root element because it renders multiple elements. 1 | 2 | <div v-for="user in users">{{user}}</div> | ^^^^^^^^^^^^^^^^^^^^^ 3 | 4 |

vuejsjavascript

Answer 1

1

captain님의 프로필 이미지
captain
Instructor

안녕하세요 민구님, 해당 에러는 컴포넌트의 최상위 HTML 엘리먼트에 v-for를 사용하셔서 그런 것 같습니다. 좀 더 하위 레벨의 HTML 엘리먼트에 v-for를 사용해보세요..! :)

mingukang's profile image
mingukang

asked

Ask a question