리액트 6

[React / Typescript] props에 기본 값 설정하는 법 (react props default value typescript)

우선 기존에 사용되던 defaultProps는 더 이상 사용되지 않는다. (참고↓) RFC: createElement changes and surrounding deprecations by sebmarkbage · Pull Request #107 · reactjs/rfcs This proposal simplifies how React.createElement works and ultimately lets us remove the need for forwardRef. Deprecate "module pattern" components. Deprecate defaultProps on function components. ... github.com 가장 쉽게 사용할 수 있는 방법은 optional argume..

Front-End/React.JS 2022.10.22

NextJS + Typescript + TailwindCSS 초기 세팅하기 (NextJS Typescript TailwindCSS project create and setting)

Create NextApp with Typescript npx create-next-app@latest --ts # or yarn create next-app --typescript 프로젝트가 만들어지고 폴더가 생기면 해당 프로젝트 폴더로 이동 Install TailwindCSS npm install -D tailwindcss postcss autoprefixer npx tailwindcss init -p Configure template paths /** @type {import('tailwindcss').Config} */ module.exports = { content: [ "./pages/**/*.{js,ts,jsx,tsx}", "./components/**/*.{js,ts,jsx,tsx}", ]..

Front-End/Next.JS 2022.09.12

[React] 멀티플렉스 영화관 체인업체 통합정보시스템 개발 (발표 영상 포함) (2학년 2학기 데이터베이스 수업 팀 프로젝트)

(※ 2학년 2학기 데이터베이스 수업의 팀 프로젝트다.) 5명이 한 팀이 되어 작업하였으며 프론트엔드 3명, 백엔드 2명으로 작업하였다. 필자는 프론트엔드를 맡아 영화 페이지, 영화 세부페이지를 작업하였고 기말 최종 발표를 진행하였다. 프론트는 React로 작업하였고 Styled Component, Material UI를 이용했다. 백은 Django로 작업하였다. 중간 과제 때 만든 데이터베이스 스키마를 이용해 물리적 데이터베이스를 만들고 swagger api를 이용해 axios로 백엔드에서 데이터를 받아와 하드코딩이 아닌 서버와 연동하여 작동하는 웹사이트를 만들었다. VCS로는 GitHub를 사용하였고 Trello의 칸반보드를 사용하며 효율적으로 작업하였다. 아래는 데이터베이스 수업 기말 최종 발표 시..

반응형