Homepage
About membership
Sign inGet started
Homepage

Denz

Denz
17 Following8 Followers
  • Profile
  • Latest
  • Claps
  • Highlights
  • Responses
Latest
Go to the profile of Denz
Denz
Jan 7, 2016

Babel을 이용해 react 소스 변환하기

Babel 을 이용한 build

Babel을 이용하여 React 소스를 JS 소스로 변환. 
( 그 외에 다른 작업은 하지 않는다. )

// babel command 사용을 위해 babel-cli 설치 
npm install babel-cli
// react -> js 변환 plugin 설치
npm install babel-preset-react
//…
Read more…
Go to the profile of Denz
Denz
Nov 29, 2015

ES6 Reflect API

Firefox 43에서 대부분 잘 동작함.
Firefox DeveloperEdition ( ver 45 )에서 더 잘 동작함.

Reflect API
- ES6에서 새롭게 추가된 API.
- 객체의 속성과 메서드를 조사하고 조작하는 API.
- 기존의 ES5에도 이를 위한 API 가 존재했지만 이를 잘 정리해 놓은 것.
- 읽고 쓰기 쉬움.
- 실패시 exception을 던지지 않음. 대신 결과에 대한 boolean 값을 반환함.
- ECMAScript 2015에 14개의 메서드를 정의함.

Read more…
1 response
Go to the profile of Denz
Denz
Nov 29, 2015

Property Descriptor

ES5 이후로 모든 property는 data property 거나 accessor property 이다. data property는 writable 속성을 가진 value 를 가지며 accessor property는 getter-setter 함수를 가진다.

data property는 value, writable, enumerable, configurable attribute를 가진다. accessor property는 set, get, enumerable…

Read more…