score:2
Accepted answer
for route which has dynamic value involved, you will need to add a colon to that parameter. so your route will look like this:
<route path="/edit/:id" component={editexercise} />
check this for reference: https://reacttraining.com/react-router/web/api/route/component
hope this helps!
Source: stackoverflow.com
Related Query
- edit exercise component not being displayed
- list.map not being displayed in React Component
- React component is not being displayed on browser, getting empty screen
- Find whether a React component is being displayed or not
- React Component data not being displayed
- Why is my column component not being displayed as expected?
- componentDidMount() not being called when react component is mounted
- Video displayed in ReactJS component not updating
- React-leaflet custom component - context not being passed?
- Ways to fix a child component that is not re-rendering (due to change in data being passed in as props, not state)?
- React/Mobx - component is re-rendering, but componentWillReceiveProps() is not being called
- AsyncTypeahead results are not being displayed on screen
- Why are my props not being passed into my component when mount rendering?
- D3 line chart component not being updated inside useEffect in React
- Functional component is not being rendered
- React Router: Component not getting displayed
- InitialValues are not displayed in AutoComplete from Material UI component in Formik Field
- IndexRoute not being displayed inside a route
- Component not returning UI even though props are being delivered
- Redux store is being updated but the component is not re-rendering
- React - component state not being set
- Programmatically change react component being displayed
- Quill toolbar is not rendering (icon paths are displayed instead of being rendered)
- In react class component why is the state not being changed in the first instance of button click? But in the second instance it gets updated?
- Array of child component not being re-rendered if param in parent changes
- React - Inline dynamic component style not being updated onMouseOver and onMouseOut events
- Colors from data not being displayed in Nivo ResponsiveBar
- Why is this date sum not being displayed correctly in react?
- Redux-React: value returned by a dispatch function is not being passed to child component
- React Router not changing displayed component
More Query from same tag
- Data created with form onSubmit is not saved correctly (React Hooks and JSON)
- converting onCancel to functional component with react Hooks from class component
- How can I Set State of a Value that is inside some other Function
- cannot read property name of underined react.js axios
- React: How to present array of objects using map() function
- Why in shouldComponentUpdate() nextProps and this.props are the same?
- How to change options color in React-select
- Only One form working at a time in react
- Unable to run a development build of a React app in a Docker container using node:alpine
- How to have 100% of the remaining space in bootstrap?
- React clone and appendchild
- Semantic-ui-react library does not work; no errors
- How to pass location state and URL params using React-Router?
- Cannot reduce the fontSize of label in reactjs using semantic-ui-react
- Styling individual routes with React
- How to alert child once the parent component's fetch call has been completed? ReactJS
- react-google-maps Multiple markers and Info Window
- I am new to the React and I don't know why this doesn't work
- Cannot change the width of the react-select element
- Context Api with typescript
- How to configure app.yaml file for node react project in google app engine
- Unable to grab the ID generated by firebase when converting to array
- Numeric value gets clear in we press letter 'e, +, -' in <input type="number">
- How to load a page with the data from a component in react
- Typescript defining a state passed as a prop
- Cannot resolve symbol 'Routes'
- Show slots based on data in Full Calendar day view
- Rerender moment.fromNow() in React
- Why is props undefined when using react-redux?
- Building a responsive infinite scroll table with InfiniteLoader, Table, Column, AutoSizer, and CellMeasurer