wanted-preonboarding-team-8 / pre-onboarding-9th-2-8 Goto Github PK
View Code? Open in Web Editor NEW원티드 프리온보딩 2차 과제
Home Page: https://pre-onboarding-9th-2-8.netlify.app
원티드 프리온보딩 2차 과제
Home Page: https://pre-onboarding-9th-2-8.netlify.app
2023.03.07 PM 19:00
회의에서 상태관리 관련하여 3가지 선택지가 있었습니다. 그 중 2가지는 아래와 같은 이유로 기각되었습니다.
그렇게 상태관리 라이브러리를 사용하지 않기로 하고, 몇 분은 ContextAPI를 사용한다 하셨던걸로 기억합니다.. 저는 localStorage를 사용해보려 했습니다. 하지만 진행하다 보니 상태 관리 라이브러리가 필요하다 판단되어 이슈를 남깁니다. 이유는 아래와 같습니다.
아마 Context API 예제를 찾아보면 대부분이 테마, 로그인 정보 같은 정도로 사용하고 있는 것을 보셨을겁니다. 이는 Context API가 예전부터 렌더링 이슈가 있어왔습니다. Provider 하위에서 context를 구독하는 모든 컴포넌트는 Provider의 value가 바뀔 때마다 다시 렌더링 됩니다. 즉 직접 context를 사용하지 않는 부분까지 리렌더링 됩니다. 때문에 업데이트가 자주 필요한 부분에 권장되지 않습니다.
저의 경우는 ContextAPI의 렌더링 이슈 때문에 로컬스토리지를 사용해볼까 했습니다. 하지만 이는 state가 아니기에 적합하지 않습니다. (좀 늦게 깨달았습니다.)
위와 같은 이유로 저는 리덕스를 사용해 장바구니를 구현하려 합니다. 회의에서 라이브러리를 사용하지 않기로 했는데 혼자 라이브러리를 쓰는 것은 옳지 못하다 생각되어 이슈로 남기겠습니다.
idx, name, mainImage, price, spaceCategory
idx, name, mainImage, description, spaceCategory, price, maximumPurchases, registrationDate
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.