p-iknow's devlog

There are 1 post that match #React.

algorithm (28)
javascript (16)
code-signal (16)
programmers (12)
자료구조 (8)
ADT (8)
front-end (7)
vscode (5)
sorting (5)
editor (5)
webpack (4)
typescript (3)
react (3)
node (3)
issue (3)
terminal (2)
never (2)
log (2)
css (2)
OOP (2)
웹표준 (1)
웹접근성 (1)
union (1)
throttle (1)
speech-bubble (1)
sementic-release (1)
section-tag (1)
review (1)
reflection (1)
pull-request (1)
private-field (1)
path (1)
passport (1)
packages (1)
observer-pattern (1)
next.js (1)
mvc-pattern (1)
interface (1)
inheritance (1)
http (1)
html (1)
github (1)
git (1)
functional-programming (1)
excess-property-check (1)
event (1)
eslint (1)
dom (1)
debug (1)
debounce (1)
conditional-type (1)
carousel (1)
browser (1)
Webpack (1)
Structural-Typing (1)
React (1)

React에서 api 로 전달되는 텍스트의 개행 처리하기

2020-03-15

react-logo 이슈 리엑트로 서비스를 운영할 때 api 에서 전달되는 텍스트가 길어서 특정 부분에 개행을 해야하는 경우가 있다. api 로 전달되는 텍스트 이기에 텍스트 중간에 태그 등의 강제 개행 태그를 추가할 수도 없다. 이럴때 어떻게 해야할까? 해결 html-react-parser 를 활용하면 이런 문제를 해결할 수 있다. api로 전달되는 …

React
front-end
© p-iknow's devlog, Built with Gatsby and gatsby-starter-hoodie theme.