강의

멘토링

커뮤니티

Cộng đồng Hỏi & Đáp của Inflearn

Hình ảnh hồ sơ của lsw08102220466
lsw08102220466

câu hỏi đã được viết

[Gia hạn] Tạo NodeBird SNS bằng React

Tạo một trang hồ sơ

Button is not defined

Viết

·

336

0

프로필 탭 들어갈 시

 

Button is not defined 이라는 오류가 뜹니다

 

제 코드는

 

import React from "react";
import PropTypes from "prop-types";
import { List } from "antd";
import Item from "antd/lib/list/Item";
import { StopOutlined } from "@ant-design/icons";
import { isStyledComponent, keyframes } from "styled-components";

const FollowList = ({ header, data }) => {
  return (
    <List
      style={{ marginBottom: 20 }}
      grid={{ gutter: 4, xs: 2, md: 3 }}
      size="small"
      header={<div>{header}</div>}
      loadMore={
        <div style={{ textAlign: "center", margin: "10px 0" }}>
          <Button>더 보기</Button>
        </div>
      }
      bordered
      dataSource={data}
      renderItem={(Item) => (
        <List.Item style={{ marginTop: 20 }}>
          <Card actions={[<StopOutlined key="stop" />]}>
            <Card.Meta description={Item.Nickname} />
          </Card>
        </List.Item>
      )}
    />
  );
};

FollowList.propTypes = {
  header: PropTypes.string.isRequired,
  data: PropTypes.array.isRequired,
};

export default FollowList;

입니다 무엇이 문제 일까요?

reactreduxnode.jsexpressnext.js

Câu trả lời 2

0

lsw0810222님의 프로필 이미지
lsw0810222
Người đặt câu hỏi

감사합니다

 

0

zerocho님의 프로필 이미지
zerocho
Người chia sẻ kiến thức

Button import 하세요

Hình ảnh hồ sơ của lsw08102220466
lsw08102220466

câu hỏi đã được viết

Đặt câu hỏi