Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- github
- system
- data structure
- computer
- architecture
- Java
- Pipelining
- for
- javascript
- DoM
- CSS
- react
- instruction
- DS
- php
- MIPS
- html
- while
- web
- XML
- control
- Algorithm
- MacOS
- python
- Class
- function
- Linux
- mysql
- DB
- DATAPATH
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 컴포넌트를 원하는대로 꾸밀 수 있습니다.
◡̈
'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 |