You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use `@/` to import files from the `src/` folder, regardless of your current view's depth level.
204
+
Use `@/` to import files from the `src/` folder, regardless of your current view's depth level.
209
205
210
206
## Navigation
211
207
@@ -258,13 +254,13 @@ Data must be destructured inside the component body from the `props` object.
258
254
259
255
```jsx
260
256
exportdefaultfunctionProductDetail(props) {
261
-
// URL Parameters (e.g., [id])
262
-
const { id } =props.match.params
257
+
// URL Parameters (e.g., [id])
258
+
const { id } =props.match.params;
263
259
264
-
// Passed State (Navigation object)
265
-
const { fromSearch } =props.location.state|| {}
260
+
// Passed State (Navigation object)
261
+
const { fromSearch } =props.location.state|| {};
266
262
267
-
// Logic...
263
+
// Logic...
268
264
}
269
265
```
270
266
@@ -276,24 +272,22 @@ To navigate between screens in your Eitri-App, use the `Eitri.navigation.navigat
276
272
// Navigate to Home page
277
273
Eitri.navigation.navigate({
278
274
path:"/Home",
279
-
})
275
+
});
280
276
281
277
// Navigate to a specific product
282
278
Eitri.navigation.navigate({
283
279
path:"/Product/12345",
284
-
})
280
+
});
285
281
286
282
// Navigate with state
287
283
Eitri.navigation.navigate({
288
284
path:"/Products",
289
-
state: { category:"electronics" }
290
-
})
285
+
state: { category:"electronics" },
286
+
});
291
287
```
292
288
293
289
For more information about available navigation methods, see the [Eitri Bifrost](eitri-bifrost.md) documentation.
294
290
295
-
## Shared Eitri-Apps
296
-
297
-
Shared Eitri-Apps are Eitri-Apps that can be imported and reused by other Eitri-Apps, allowing you to create modular and shareable solutions.
291
+
## Dependencies
298
292
299
-
For more information, see the [Multiple Shareds](../quick-guides/multiple-shared.md) tutorial.
293
+
To understand how to manage and use dependencies in your Eitri-App, refer to the [Managing Dependencies in Eitri-Apps](../quick-guides/dependencies.md) guide.
0 commit comments