摘要:
A router library is no good if we have to hardcode every single route in our application. In this lesson we look at how to access variables in our rou 阅读全文
摘要:
TodoList.ts: TodoItemRender.ts: Current we pass [todo] to the itemRender from List, we actually can give @Input('name'): TodoList.ts: TodoItemRender.t 阅读全文
摘要:
IndexRoute allows us to define a default child component to be rendered at a specific route when no other sub-route is available. When Home page displ 阅读全文
摘要:
Since react-router routes are components, creating nested routes is as simple as making one route a child of another in JSX. Make the nested component 阅读全文
摘要:
In this lesson we'll look at hashHistory which uses a hash hack to track our route changes vs browserHistory which delivers clean urls, but requires s 阅读全文
摘要:
react-router provides two props for setting a specific style on a Link component whose path matches our current route. activeStyle allows for an inlin 阅读全文
摘要:
Handling state with Typescript enums, instead of booleans, is preferred because:- Enums are more readable- Enums can have as many states as you need w 阅读全文