Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React 0.12-rc1 릴리즈 #2

Open
sairion opened this issue Oct 17, 2014 · 2 comments
Open

React 0.12-rc1 릴리즈 #2

sairion opened this issue Oct 17, 2014 · 2 comments

Comments

@sairion
Copy link
Member

sairion commented Oct 17, 2014

http://facebook.github.io/react/blog/2014/10/16/react-v0.12-rc1.html

눈에 뜨는 변화들을 써보자면요,

  • JSX Spread operator ... 으로 dynamic하게 값 넘기는 것이 가능해짐.
    var myProps = { a: 1, b: 2 };
    return <MyComponent {...myProps} />;
  • @jsx pragma 안 써도 된다
  • props.keyprops.ref 가 자바스크립트 VM에서 JIT성능이 떨어지는 문제로 ReactElement 쪽으로 이동 (본문에서 썼듯 someElement.props.key -> someElement.key)
  • React.renderComponent -> React.render
  • html 엘리먼트 화이트리스팅이 힘드니 이제부터 jsx에 소문자로 쓰면 html으로 간주하는 컨벤션 적용
@Kroisse
Copy link

Kroisse commented Oct 17, 2014

👍

@dittos
Copy link
Contributor

dittos commented Oct 17, 2014

transferPropsTo가 없어지는게 좀 아쉽네요... 고칠 데가 많군요 ㅠㅠ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants