{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/425","labels_url":"https://api.github.com/repos/ant-design/ant-design/issues/425/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design/issues/425/comments","events_url":"https://api.github.com/repos/ant-design/ant-design/issues/425/events","html_url":"https://github.com/ant-design/ant-design/issues/425","id":112940363,"number":425,"title":"nodejs如何使用ant-design","user":{"login":"lucifercd","id":13402671,"avatar_url":"https://avatars.githubusercontent.com/u/13402671?v=3","gravatar_id":"","url":"https://api.github.com/users/lucifercd","html_url":"https://github.com/lucifercd","followers_url":"https://api.github.com/users/lucifercd/followers","following_url":"https://api.github.com/users/lucifercd/following{/other_user}","gists_url":"https://api.github.com/users/lucifercd/gists{/gist_id}","starred_url":"https://api.github.com/users/lucifercd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucifercd/subscriptions","organizations_url":"https://api.github.com/users/lucifercd/orgs","repos_url":"https://api.github.com/users/lucifercd/repos","events_url":"https://api.github.com/users/lucifercd/events{/privacy}","received_events_url":"https://api.github.com/users/lucifercd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-23T03:21:53Z","updated_at":"2015-10-23T06:08:16Z","closed_at":null,"body":"我是一名新手，试了几次在nodejs(thinkjs框架)里面使用ant-design，都没有成功。nodejs加载模块大部分是require方式，ant-design的快速上手使用的import React from 'react';   不知道在项目中怎么使用？\r\n建议以后的教程可以针对新手一些，也利于项目的传播。"},"comment":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/comments/150485759","html_url":"https://github.com/ant-design/ant-design/issues/425#issuecomment-150485759","issue_url":"https://api.github.com/repos/ant-design/ant-design/issues/425","id":150485759,"user":{"login":"benjycui","id":3580607,"avatar_url":"https://avatars.githubusercontent.com/u/3580607?v=3","gravatar_id":"","url":"https://api.github.com/users/benjycui","html_url":"https://github.com/benjycui","followers_url":"https://api.github.com/users/benjycui/followers","following_url":"https://api.github.com/users/benjycui/following{/other_user}","gists_url":"https://api.github.com/users/benjycui/gists{/gist_id}","starred_url":"https://api.github.com/users/benjycui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjycui/subscriptions","organizations_url":"https://api.github.com/users/benjycui/orgs","repos_url":"https://api.github.com/users/benjycui/repos","events_url":"https://api.github.com/users/benjycui/events{/privacy}","received_events_url":"https://api.github.com/users/benjycui/received_events","type":"User","site_admin":false},"created_at":"2015-10-23T06:08:16Z","updated_at":"2015-10-23T06:08:16Z","body":"[`import`](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Statements/import) 是 ES6 的语法。\r\n\r\n```js\r\nimport React from 'react'; \r\n```\r\n\r\n等价于：\r\n\r\n```js\r\nvar React = require('react');\r\n```"}}