We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.bootstrap
bootstrap
2.路由
About
history
react-router
React Router
URL
location
hashHistory
browserHistory
hash:
example.com/#/some/path
browser:
Link、NotFound、Redirect、onEnter、onLeave、IndexLink
总的来说,react-router的内容还是不少的,当前项目以部分功能跑通使用为主,详细的使用会有单独的文章讲解。
3.history-api-fallback
enables support for history API fallback.
4.api.github.com
https://developer.github.com/v3
{ "login": "GuoYongfeng", "id": 8686869, "avatar_url": "https://avatars.githubusercontent.com/u/8686869?v=3", "gravatar_id": "", "url": "https://api.github.com/users/GuoYongfeng", "html_url": "https://github.com/GuoYongfeng", "followers_url": "https://api.github.com/users/GuoYongfeng/followers", "following_url": "https://api.github.com/users/GuoYongfeng/following{/other_user}", "gists_url": "https://api.github.com/users/GuoYongfeng/gists{/gist_id}", "starred_url": "https://api.github.com/users/GuoYongfeng/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/GuoYongfeng/subscriptions", "organizations_url": "https://api.github.com/users/GuoYongfeng/orgs", "repos_url": "https://api.github.com/users/GuoYongfeng/repos", "events_url": "https://api.github.com/users/GuoYongfeng/events{/privacy}", "received_events_url": "https://api.github.com/users/GuoYongfeng/received_events", "type": "User", "site_admin": false, "name": "GuoYongfeng", "company": "Yonyon.inc", "blog": "http://guoyongfeng.github.io/idoc/", "location": "Beijing City, Haidian District North Road No. 68, UFIDA Software Park", "email": "[email protected]", "hireable": null, "bio": null, "public_repos": 70, "public_gists": 0, "followers": 57, "following": 36, "created_at": "2014-09-07T15:07:31Z", "updated_at": "2016-03-26T01:01:22Z" }
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
👍
No branches or pull requests
关于教程内容的几点补充
1.bootstrap
bootstrap
,而文章中的代码里面没有,因为计划把bootstrap
的引入使用放到第三章了。2.路由
About
容器组件,用于展示路由的功能history
和react-router
的关系。React Router
是建立在history
之上的。 简而言之,一个 history 知道如何去监听浏览器地址栏的变化, 并解析这个URL
转化为location
对象, 然后 router 使用它匹配到路由,最后正确地渲染对应的组件。所以使用react-router
的时候请将history
一起下载,而且有可能会有版本问题导致的坑hashHistory
和browserHistory
有什么区别hash:
它用到的是 URL 中的 hash(#)部分去创建形如example.com/#/some/path
的路由。browser:
它使用 History API 在浏览器中被创建用于处理 URL,新建一个像这样真实的URL
react-router
的其他用法简介:Link、NotFound、Redirect、onEnter、onLeave、IndexLink
总的来说,react-router的内容还是不少的,当前项目以部分功能跑通使用为主,详细的使用会有单独的文章讲解。
3.history-api-fallback
enables support for history API fallback.
4.api.github.com
https://developer.github.com/v3
The text was updated successfully, but these errors were encountered: