-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new `render` function prop API. This new API lets you control how the routed component is rendered by the `UIView`: ```jsx <UIView render={(Comp, props) => <Comp {…props} />} /> ``` BREAKING CHANGE: Rename `Resolves` interface to `UIViewResolves` for consistency. BREAKING CHANGE: Rename `InjectedProps` interface to `UIViewResolves` for consistency. Closes #35 Closes #26 Closes #13
- Loading branch information
Showing
5 changed files
with
44 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* # Components | ||
* | ||
* UI-Router React Components and their APIs: | ||
* - [[UIRouter]]: Main router component | ||
* - [[UIView]]: A viewport for routed components | ||
* - [[UISref]]: A state ref to a target state; navigates when clicked | ||
* - [[UISrefActive]]: Adds a css class when a UISref's target state (or a child state) is active | ||
* | ||
* @preferred | ||
* @reactapi | ||
* @module components | ||
*/ /** */ | ||
|
||
export * from "./UIRouter"; | ||
export * from "./UIView"; | ||
export * from "./UISref"; | ||
export * from "./UISrefActive"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters