{"blog_title":"MEMOcho-","blog_url":"https://jsapachehtml.hatenablog.com/","height":"190","provider_name":"Hatena Blog","url":"https://jsapachehtml.hatenablog.com/entry/2016/08/20/215227","categories":["javascript"],"provider_url":"https://hatena.blog","title":"es6\u3067react\u3092\u4f7f\u3046\u3068\u304d\u306e\u30e1\u30e2","author_url":"https://blog.hatena.ne.jp/y-kamiya/","type":"rich","image_url":"http://ecx.images-amazon.com/images/I/51YBn5cnE9L.jpg","version":"1.0","published":"2016-08-20 21:52:27","description":"react\u3092\u89e6\u3063\u3066\u307f\u305f \u305b\u3063\u304b\u304f\u306a\u306e\u3067\u65b0\u3057\u3044\u5f62\u3067\u4f7f\u3044\u305f\u304fes6\u306e\u5f62\u306b\u3057\u305f\u3089\u3001react\u306e\u5143\u306e\u66f8\u304d\u65b9\u3067\u306f\u52d5\u304b\u306a\u3044\u3068\u3053\u308d\u304c\u3042\u3063\u305f\u306e\u3067\u30e1\u30e2\u3057\u3066\u304a\u304f 1. getInitialState # es6\u4ee5\u524d var Component = React.createClass({ getInitialState: function() { return {data: []}; }, es6\u3067\u306fgetInitialState\u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u3092\u5b9a\u7fa9\u3057\u3066\u3082\u52d5\u304b\u306a\u3044\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5b9a\u7fa9\u3059\u308b\u3002 # es6 class Component extends React.Component { constructor() { \u2026","author_name":"y-kamiya","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjsapachehtml.hatenablog.com%2Fentry%2F2016%2F08%2F20%2F215227\" title=\"es6\u3067react\u3092\u4f7f\u3046\u3068\u304d\u306e\u30e1\u30e2 - MEMOcho-\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}