mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
764f81925b
Judging by https://github.com/rackt/react-router/blob/master/docs/API.md#children-1 and a few inspections in the code, as well as tests, the `children` prop injected into routes can only ever be a single React Element object. This allows us to easily get the active route of a child (if there is an active route) by querying the `children`’s route prop. |
||
---|---|---|
.. | ||
actions | ||
components | ||
constants | ||
fetchers | ||
mixins | ||
models | ||
sources | ||
stores | ||
third_party | ||
utils | ||
alt.js | ||
app.js | ||
history.js | ||
routes.js |