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 | 29 |
30 | 31 |
Tags
- table
- GIT
- hadoop
- mybatis
- mapreduce
- IntelliJ
- window
- Kotlin
- JavaScript
- vaadin
- R
- NPM
- Spring
- xPlatform
- tomcat
- 공정능력
- SSL
- plugin
- Sqoop
- SPC
- Python
- Java
- MSSQL
- Android
- es6
- Express
- Eclipse
- 보조정렬
- SQL
- react
Archives
- Today
- Total
728x90
목록react (22)
DBILITY

그냥 New Project에서create-react-app부분에 --template cra-template-pwa를 추가하고 생성하면 되더라. npm build해보니 asset-manifest.json도 있다. index.js안에 serviceWorkerRegistration.unregister();를 serviceWorkerRegistration.register();로 변경하고 build. 이제 react 초보 학습중이라 build후 배포하고 실행해 보진 못했다. import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorkerRe..
front-end & ui/react
2021. 12. 14. 16:07
react Warning: validateDOMNesting(...): <a> cannot appear as a descendant of <a>.
Warning이 빨간색으로 뜨면 어쩌자는 건지 초보는 식겁하게 된다. 읽어보니 a tag가 중첩이 되어 나타났다. 상식적으로 봐도 link안에 link는 당연히 문제. 코드를 살펴보니 react-bootstrap을 사용해서 Nav.Link를 썼는데 그 안에 Link태그를 또 썼다. 상위요소는 Nav였고 하위에 Nav.Link가 있는데 그안에 Link를 써서 문제였던 모양이다. 다른 Tag도 잘못된 중첩이 발생하면 이런 경고가 나오겠다. Nav.Link에 as={Link} to={'/url'} 이렇게 하면 된다고 한다.
front-end & ui/react
2021. 12. 11. 10:30
728x90