Notice
Recent Posts
Recent Comments
Link
250x250
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
Tags
- AI
- computer
- Java
- architecture
- instruction
- javascript
- github
- Algorithm
- react
- control
- web
- Class
- CSS
- system
- DB
- openai
- DATAPATH
- MIPS
- python
- mysql
- for
- data structure
- php
- Rag
- function
- html
- Pipelining
- DS
- XML
- Linux
Archives
- Today
- Total
YYYEJI
[React] 리액트(React)에서 텍스트 줄바꿈하기 본문
728x90

리액트(React)에서 텍스트 줄바꿈을 어떻게 해야할지 고민을 오래했는데 생각보다 쉽네요 ...
우선 원하는 tag를 사용해서 문구를 넣어줍니다.
<h3>Hello World! </h3>

줄바꿈을 원하는 부분에 <br></br> tag를 넣어줍니다.
<h3>Hello <br></br>World! </h3>

줄바꿈이 잘 되는 것을 확인할 수 있습니다.
◡̈
728x90
'Web Application Server (WAS)' 카테고리의 다른 글
| [React] react-dom.development.js:86 Warning: validateDOMNesting(...): <h2> cannot appear as a descendant of <p> 에러 (0) | 2023.01.16 |
|---|---|
| [React] 버튼 onClick 속성에 두 개의 기능 넣기 (0) | 2023.01.14 |
| [React] Link 컴포넌트 밑줄 제거하기 (0) | 2023.01.14 |
| [React] 함수형 컴포넌트에 props 전달하기 (0) | 2023.01.13 |
| [JSP] Cannot resolve taglib with uri http://java.sun.com/jsp/jstl/core 에러 (0) | 2023.01.11 |