This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Three mostly separate examples: Adding, reading/listening, and removing multiple items from firebase | |
// Firebase V3.0.0 | |
// one school has many courses and many studens | |
// one course has many students and is in only one school | |
// one student is in many courses and only one school | |
const db = firebase.database().ref('test'); | |
const userId = firebase.auth().currentUser.uid; | |
/* -- ADDING -- */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const update = React.addons.update; | |
/*--------------------------------- | |
immutable.js 기본 사용법(삽입, 수정, 삭제) | |
React state에서 내부배열을 처리할때는 | |
push는 직접적으로 배열을 건들기때문에 사용하면 안됨 | |
해결방안 |