• 로그인
  • 장바구니에 상품이 없습니다.

home2 게시판 Next.js 게시판 rning: Extra attributes from the server: cz-shortcut-listen

rning: Extra attributes from the server: cz-shortcut-listen

2 글 보임 - 1 에서 2 까지 (총 2 중에서)
  • 글쓴이
  • #79625

    정중식
    참가자
    상품목록페이지에만 들어가면 이런 에러를 출력해주는데요,
    
    뭐때문인지 모르겠습니다.. 에러메시지 전체를 구글링해봤는데 딱히 무엇때문인지 모르겠어요..ㅠㅠ
    
    제 List.js 코드입니다.
    
    'use client';
    import { useState } from 'react';
    const List = () => {
      const [count, setCount] = useState(0);
      let products = ['Tomatoes', 'Pasta', 'Coconut'];
      const onCountRemove = () => {
        if (count <= 0) {
          return;
        } else {
          setCount(count - 1);
        }
      };
      return (
        <div>
          <h4 className='title' style={{ fontSize: '20px' }}>
            상품목록
          </h4>
          {products.map((product, index) => (
            <div className='food' key={index}>
              < img src={`/food${index}.png`} />
              <h4>{product} $40</h4>
              <div className='product-count'>
                <span style={{ marginRight: '.5rem' }}>{count}</span>
              </div>
              <button
                onClick={() => {
                  setCount(count + 1);
                }}
                className='product-button'
                style={{ marginRight: '.5rem' }}
              >
                +
              </button>
              <button className='product-button' onClick={onCountRemove}>
                -
              </button>
            </div>
          ))}
        </div>
      );
    };
    export default List;
    
    
    아, 그리고 선생님 혹시 js 파일들을 jsx로 바꿔줘도 상관없을까요?
    
    
    #79643

    codingapple
    키 마스터
    크롬부가기능 다 꺼봅시다
2 글 보임 - 1 에서 2 까지 (총 2 중에서)
  • 답변은 로그인 후 가능합니다.

About

현재 월 700명 신규수강중입니다.

  (09:00~20:00) 빠른 상담은 카톡 플러스친구 코딩애플 (링크)
  admin@codingapple.com
  이용약관
ⓒ Codingapple, 강의 예제, 영상 복제 금지
top

© Codingapple, All rights reserved. 슈퍼로켓 에듀케이션 / 서울특별시 강동구 고덕로 19길 30 / 사업자등록번호 : 212-26-14752 온라인 교육학원업 / 통신판매업신고번호 : 제 2017-서울강동-0002 호 / 개인정보관리자 : 박종흠