{"action":"created","issue":{"url":"https://api.github.com/repos/wix/react-templates/issues/135","repository_url":"https://api.github.com/repos/wix/react-templates","labels_url":"https://api.github.com/repos/wix/react-templates/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/wix/react-templates/issues/135/comments","events_url":"https://api.github.com/repos/wix/react-templates/issues/135/events","html_url":"https://github.com/wix/react-templates/issues/135","id":155757840,"number":135,"title":"minify React.createElement calls","user":{"login":"nippur72","id":2598443,"avatar_url":"https://avatars.githubusercontent.com/u/2598443?v=3","gravatar_id":"","url":"https://api.github.com/users/nippur72","html_url":"https://github.com/nippur72","followers_url":"https://api.github.com/users/nippur72/followers","following_url":"https://api.github.com/users/nippur72/following{/other_user}","gists_url":"https://api.github.com/users/nippur72/gists{/gist_id}","starred_url":"https://api.github.com/users/nippur72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nippur72/subscriptions","organizations_url":"https://api.github.com/users/nippur72/orgs","repos_url":"https://api.github.com/users/nippur72/repos","events_url":"https://api.github.com/users/nippur72/events{/privacy}","received_events_url":"https://api.github.com/users/nippur72/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-05-19T14:56:49Z","updated_at":"2016-08-12T17:30:33Z","closed_at":null,"body":"We could save bytes if we do like other vdom packages do, namely use a short alias name for `React.createElement`.\r\n\r\nFor example:\r\n```js\r\nvar h = require(\"react\").React;\r\nh(\"div\", ... );\r\n```\r\ninstead of\r\n```js\r\nvar React = require(\"react\");\r\nReact.createElement(\"div\", ... );\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/wix/react-templates/issues/comments/239509232","html_url":"https://github.com/wix/react-templates/issues/135#issuecomment-239509232","issue_url":"https://api.github.com/repos/wix/react-templates/issues/135","id":239509232,"user":{"login":"nippur72","id":2598443,"avatar_url":"https://avatars.githubusercontent.com/u/2598443?v=3","gravatar_id":"","url":"https://api.github.com/users/nippur72","html_url":"https://github.com/nippur72","followers_url":"https://api.github.com/users/nippur72/followers","following_url":"https://api.github.com/users/nippur72/following{/other_user}","gists_url":"https://api.github.com/users/nippur72/gists{/gist_id}","starred_url":"https://api.github.com/users/nippur72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nippur72/subscriptions","organizations_url":"https://api.github.com/users/nippur72/orgs","repos_url":"https://api.github.com/users/nippur72/repos","events_url":"https://api.github.com/users/nippur72/events{/privacy}","received_events_url":"https://api.github.com/users/nippur72/received_events","type":"User","site_admin":false},"created_at":"2016-08-12T17:30:33Z","updated_at":"2016-08-12T17:30:33Z","body":"I just tried out PR #176 in a small production app with `--create-element-alias _h`, and size went from 303 k to 297 k... Not bad."}}
{"actor":{"display_login":"nippur72"}}