deleteChecked: function () {
let model = _.clone(this.models);
model.filter(item => {
if (item.get(“completed”) === true) {
item.deleteItem();
백본에서 투두앱을 만들던 도중 발생했던 문제가 있다. compositeView에서 inputButton을 누르면 할일목록을 추가하는 부분이다. 추가하면 객체가 생성되는데 그안에는 id, title…
라이브러리 구조
리액트 리덕스 미들웨어는 비동기 작업을 할때 가장 많이 사용된다. Redux-Thunk 를 이용하면 액션 객체가 아닌 함수를 디스패치 할 수 있다.
자바스크립트는 동적 언어이다. 따라서 변수의 타입은 런타임에 의해 결정된다. 이는 작은 규모의 프로젝트에서는 생산성이 좋지만 큰 규모의 프로젝트에서는 오히려 생산성이 떨어질 수 있다.