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 | 29 | 30 | 31 |
Tags
- Class
- javascript
- python
- Algorithm
- control
- php
- AI
- Linux
- for
- instruction
- function
- MIPS
- mysql
- DATAPATH
- data structure
- react
- DS
- system
- html
- XML
- openai
- Java
- architecture
- Rag
- computer
- DB
- CSS
- Pipelining
- web
- github
Archives
- Today
- Total
YYYEJI
[React] Link 컴포넌트 밑줄 제거하기 본문
728x90

React에서 Link 컴포넌트를 사용하면 밑줄이 생깁니다.
function Start() {
<Link to="/example/question">테스트 시작하기</Link>
}

Link 컴포넌트의 밑줄을 제거하고 싶으면 아래와 같은 CSS를 이용하면 됩니다.
function Start() {
const style={ textDecoration: 'none', color: 'white' }
return (
<Link style={style} to="/example/question">테스트 시작하기</Link>
);
}

이렇게 Link 컴포넌트를 원하는대로 꾸밀 수 있습니다.
◡̈
728x90
'Web Application Server (WAS)' 카테고리의 다른 글
| [React] 버튼 onClick 속성에 두 개의 기능 넣기 (0) | 2023.01.14 |
|---|---|
| [React] 리액트(React)에서 텍스트 줄바꿈하기 (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 |
| [React] Failed to load plugin 'jest' declared in 'package.json 에러 (0) | 2023.01.11 |