일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- accordian
- transition
- createPortal
- 제어컴포넌트
- parent padding
- CustomHook
- QueryClient
- 이즐 #ezl #욕나오는 #교통카드
- ignore padding
- 서초구보건소 #무료CPR교육
- vite
- useQueryClient
- Carousel
- 부모요소의 패딩 무시
- 화살표2개
- react
- BlockFormattingContext
- alias설정
- 조건부스타일
- tailwindCSS
- BFC
- debouncing
- twoarrow
- 문제해결
- DOM
- ?? #null병합연산자
- 리액트
- 함수형프로그래밍
- es6
- 부모패딩
- Today
- Total
목록전체 글 (191)
프론트엔드 첫걸음
https://medium.com/free-code-camp/pipe-and-compose-in-javascript-5b04004ac937 A quick introduction to pipe() and compose() in JavaScript Functional programming’s been quite the eye-opening journey for me. This post, and posts like it, are an attempt to share my insights and… medium.com arrow 함수와 rest parameter, reduce 함수를 이해한 상태이면 아래와 같은 compose 함수를 이해할 수 있다. // 함수들과 x를 받아서 차례로 함수들에 결과를 대입하게 하는 ..
svg 파일은 비율이 있어서 화면에 가득차게 연출하면 화면의 일부가 잘린다. 이때 aspectRatio를 어떻게 할 것인지 설정을 바꾸어 어떤부분을 잘리게 해서 화면에 보여줄지 설정할 수 있다. preserveAspectRatio: 'xMidYMin slice', 이 경우 x축 중앙에 맞추고, Y축은 위쪽이 보이도록 ( Y축의 0값 부분이 잘리도록) 하는 설정이다 현재 lottie file을 사용해서 개발하고 있는데 rendererSetting에서 아래와 같이 설정해 줄 수 있다. rendererSettings: { preserveAspectRatio: 'xMidYMin slice', }, xMaxYMin slice 해주면 우측 위 방향의 프레임을 보존하는 형태로 잘린다.
리액트 프로젝트를 할때 이렇게 @ 로 절대경로를 표시해주고 있다. (복잡한 프로젝트에서 상대경로 ../../../ 로 import 해오는것은 .... ) import React from 'react' import { Routes, Route, Navigate } from 'react-router-dom' import Splash from '@/page/Splash.jsx' 현재 vite 사용하여 빌드하는 프로젝트에서 아래와 같이 alias 사용해서 절대경로로 설정해주고있다. import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' import path from 'path' import { ViteEjsPlugin } from..
react-webcam 라이브러리 사용할 때 비디오가 화면비율에 맞지 않게 출력되는 현상!! 비디오에 object-fit:cover 효과를 준 것처럼 하고 싶어요! >> react webcam without object-fit cover 검색 https://stackoverflow.com/questions/55920961/react-webcam-npm-package-video-sizing 친절하게 hook 사용예시까지 제공해줌..프로젝트에 반영하니까 바로 됨 !!! const isLandscape = size.height { // Handler to call on window resize function handleResize() { // Set window width/height to state set..
The WebGL renderer displays your beautifully crafted scenes using WebGL. WebGLRenderer 는 WebGL을 이용해서 예쁘게 만들어진 화면을 보여준다. 생성자(optional) canvas 렌더러가 그것의 결과를 그릴 canvas domElement 속성과 일치body에 canvas를 붙이겠다는 의미 const renderer = new THREE.WebGLRenderer(); document.body.appendChild(renderer.domElement); antialias 안티앨리어싱을 할 것인가 alpha 투명도 . 아무것도 없는 공간은 투명하게 보이도록 설정 default는 false (1): 불투명 , true (0) : 투명 속..
three.js-master.zip 다운로드 https://threejs.org/ [Three.js – JavaScript 3D Library threejs.org](https://threejs.org/) js 파일 직접 참조 참조하는 js 파일에 다운받은 three.js 코어 파일 경로 적어줌 main.js //import * as THREE from "three"; import * as THREE from "./three.module.js"; //import { OrbitControls } from 'three/addons/controls/OrbitControls.js'; import * as THREE from "./OrbitControls.js"; import ~~ from '..
더해진것들? three.js의 핵심은 3D engine에 집중하고, 유용한 컴포넌트들(controls, loaders, 전처리효과등등)은 examples/jsm 폴더에 있다. 이것들을 Addons라고 한단다. 이전엔 examples라고 했다지.. 얘네들은 그대로( off the shelf , 기성품으로) 사용할수도 있고 재조합 및 커스터마이징 할 수 있어서 examples라고 하는데, 다른 서드파티 패키지들은 업데이트되고 변경되는 반면 얘네들은 최신버전이 반영안됨. 그러니까 업데이트는 필요없지만 반드시 개별적으로 import 해줘야 함. npm으로 install 한 상태에서도 OrbitControls를 사용하려면 three/addons/~ 에서 따로 import 해줘야 한다는 것! import { Orb..
export function createDOM(node) { if (typeof node === 'string') { return document.createTextNode(node); } const element = document.createElement(node.tag); Object.entries(node.props) .forEach(([name, value]) => element.setAttribute(name, value)); node.children .map(createDOM) .forEach(element.appendChild.bind(element)); return element;}export function createElement(tag, props, ..
전역으로 eslint를 설치하는 것은 권장되지 않는다고 한다. It is also possible to install ESLint globally, rather than locally, using npm install eslint --global. However, this is not recommended, and any plugins or shareable configs that you use must still be installed locally if you install ESLint globally. 현재 전역적으로 설치된 패키지가 어떤게 있는지 확인하는 방법 명령어로 확인 npm list -g --depth=0 전역적으로 node_module 설치된 경로로 이동해서 직접 확인 cd /usr/lo..

네트워크의 속도를 조절할 수 있는 개발자 도구 속성이 있다. 네트워크 > 느린 3G react-query 에서 isLoading 이 적용되었는지 확인하는 과정에서 사용할 수 있다. https://unit-15.tistory.com/85 throttle의 사전적 의미는 '목을 조르다, 목을 졸라 죽이다'로써, throttling은 '대역폭 제한, 대역폭 조절'을, No throttling은 '트래픽 조절 금지'를 뜻한다. 대역폭 제한(throttling)이란 인터넷 서비스 공급자가 의도적으로 인터넷 서비스를 느리게 하는 것을 의미한다. 대역폭을 제한함으로써 네트워크의 과부하를 막으며, 네트워크 트래픽을 규제할 수 있다.