petdy-test's People
petdy-test's Issues
[react] 요구사항
같은 요소 두 번 누르면 key값 중복 -> 무한 error로 서버 down
사료 1번 누르고, 다른걸 누르면 쌓이지 않게 [ setTarget(...빼기) ]
영양소 1번 누르면 쌓이게 [ setTarget( ...넣기) ]
이제부터 진짜 기획이 중요할 것 같은데 일단은 개발만 주구장창 하는 느낌... 크흠
제대로 정립을 해야겠음
[react] 요구사항
-
보이는건 잘 되지만 데이터 쌓이는걸 방지해야함
-
양 환산해주는 알고리즘 필요
=> 칼로리를 기준점으로 잡고 가장 근사치를 handling해야함
=> 이부분은 처음에 칼로리 100에 수렴하게 사료로 나타내고 그 다음에 영양제를 환산(5kg당.. 몇 g이였으니까 이건 고정값임)
=> 영양제 환산 값을 사료에서 빼면된다.
[react] 요구사항 - ab. toggle
toggle은 되지만 각 버튼을 두번누르지 않으면 array에서 기존 key에 해당되는 정보를 지워주지 않음
아예 다른걸 눌렀을 때 그 전 키값을 지워주면 된다.
근데 이부분은... if 구문으로 8개를 다 처리해버려도 되지만, 너무 비효율적이니까 다른 방법을 찾아야함
[react] 파일구조 개선
추후 여러 서비스를 하나의 앱에 올리기 위해 서비스 별로 구조를 Routing할 수 있게 나눌 것
[react] 성능개선 ab. useFetchData
useFetchData 관련해서
훅 자체가 여러번 호출되며,
그 안에 있는 logic은 useEffect로 1회 실행하게 할 수 있지만
그 훅 자체를 memoization 시켜서
아예 호출이 안되게 해야한당.
담에하자^^
[react] 요구사항
영양제는 누적되게
처음에 기준량 정하고,
정보 수정 가능하게
max, min value
경고 후 -> 자기가 맞출 수 있게
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.