@colisweb/rescript-toolkit 5.28.0 → 5.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -179,6 +179,14 @@ module Make = (Config: RouterConfig) => {
|
|
|
179
179
|
}, [])
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
+
module Use = {
|
|
183
|
+
@react.component
|
|
184
|
+
let make = (~routes: array<link>) => {
|
|
185
|
+
use(routes)
|
|
186
|
+
React.null
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
182
190
|
@react.component
|
|
183
191
|
let make = () => {
|
|
184
192
|
let {links} = store.useStore()
|