React (2) 썸네일형 리스트형 [React] Carousel(캐러셀) 구현 js> import React from "react"; import {Button, Carousel} from "antd"; import { LeftCircleOutlined, RightCircleOutlined } from "@ant-design/icons"; import "../css/Carousel.css"; const Carousel = () => { const settings = { dots: true, prevArrow: , nextArrow: , }; return ( // 캐러셀 기능 구현할 내용 ); }; const CustomPrevArrow = (props) => { const { className, onClick } = props; return ( ); }; const CustomNe.. [React] 스크롤되는 Textarea 구현 import React, {Component} from 'react'; class ScrollableTextarea extends Component { constructor(props) { super(props); this.state = { text:'' // textarea에 적을 내용 }; } componentDidMount() { this.textarea.value = this.state.text; } handleTextareaChange = (event) => { this.setState({text: event.target.value}); }; render() { return( (this.textarea = textarea)} onChange={this.handleTextareaChange} sp.. 이전 1 다음