Get Params in Routes Element #8534
javadzobeidi
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hi. before v6 we got params in render function because we need to pass them to special component.now in v6 how to get params in elemnt ?
sample in v5
<Route exact path="/teacher/studenthomeworkuser/:id" render={(props) => <ComponentLoader LoadingComponent={LoadingComponent} key={8} component={StudentHomeWorkUser} apiCall={() => getStudenthomeworkuser(props.match.params.id)} />} />
in v6
we can pass params in api call
Beta Was this translation helpful? Give feedback.
All reactions