리액트

Web

[React] 리액트 Portal(포탈) 사용해서 모달 구현하기

참고https://react.dev/reference/react-dom/createPortal createPortal – ReactThe library for web and native user interfacesreact.dev https://abangpa1ace.tistory.com/entry/React-Portal-%ED%8F%AC%ED%83%88 [React] Portal (포탈), Modal 구현하기회사에서 선배와 React로 모달 구현에 대해 고민하다가 알게된 내용이었다. 우리 회사 프로젝트는 Vue를 사용하기 때문에, 플러그인(this.$modal) 메서드를 통해 루트에 모달 컴포넌트를 주입, 삭제해abangpa1ace.tistory.comhttps://dev-bomdong.tistory.c..

Web

[storybook] 리액트 프로젝트에서 스토리북 사용하기

프로젝트 환경 - react: 18.2.0 (vite 5.0.8.) - SCSS - storybook: 8.0.2. 참고 https://storybook.js.org/tutorials/intro-to-storybook/react/ko/get-started/ Storybook Tutorials Learn how to develop UIs with components and design systems. Our in-depth frontend guides are created by Storybook maintainers and peer-reviewed by the open source community. storybook.js.org 스토리북? 프로젝트의 컴포넌트들을 문서화하여 협업을 할 때 컴포넌트가 잘 만..

_이앎
'리액트' 태그의 글 목록