일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
31 |
- 채팅앱
- 스코프
- react
- 채팅 앱
- 클로저
- HTTP
- MongoDB
- 빙고
- node.js
- Redis
- 데이터 엔지니어
- post
- NoSQL
- Get
- 수강관리앱
- 모듈
- MONGOOSE
- npm
- 크롤링
- JQuery
- Redux
- 호이스팅
- crud
- 이벤트 루프
- 공 피하기 게임
- 크롬확장앱
- socket.io
- Firebase
- Websocket
- 프로토타입패턴
- Today
- Total
목록react (2)
개발로그
5. DM 채팅 Side Panel Direct Message UI DIRECT MESSAGES(1) {this.renderDirectMessages()} user 목록 가져오기 접속 중인 유저 파란색으로 표시 addUsersListeners = (currentUserId) => { const {usersRef} = this.state; let usersArray = []; usersRef.on("child_added", DataSnapshot => { if(currentUserId !== DataSnapshot.key) { let user = DataSnapshot.val() user["uid"] = DataSnapshot.key user["status"] = "offline"; usersArray.p..
전체 코드 : GitHub 0. 개념 Redux란? Redux is a predictable state container for JavaScript apps. Action : a plain object describing what happened Reducer : a function describing how the application's state changes Store : the object that brings them together Reducer는 action이 store를 어떻게 업데이트 하는지 기술하는 함수이다. Reducer는 항상 state와 action을 받아 state를 return 해줘야 한다. Dispatch를 사용하여 store의 reducer에 action을 전달한다. Ac..