score:0
Accepted answer
change the link to prop to this:
<td><link to={`/dta/${object.id}`}>{object.dta_mnemonic}</link></td>
note the back-tick (``)
see https://developer.mozilla.org/en-us/docs/web/javascript/reference/template_literals for more info about template literals
Source: stackoverflow.com
Related Query
- Not able to parse object id in link
- Webpack with babel-loader not able to parse react function component
- Reactjs with fetch for auth and access token, not able to parse response
- Not able to set the JSON object of Arrays in React js using axios.get function and display the object of Arrays in table
- react - not able to import object from another js file
- Why Am I Not Able to Access state Through a Link Component?
- ReactJs Link Not Able To Navigate To Respective Component
- I am not able to pass the parameter in the link to function
- Link and Select dropdown in one wrapper causing not able to select
- Not able to parse data combination of JSON as well as XML (Invalid JSON)
- not able to pass value through link and router react js
- Can not able to get the location state when opened with "open link in a new tab" in react router
- not able to use $pull (Mongoose) to remove an object in an array for a user model
- Not able to target a sub property of a JSON object in react stored in state within the render method
- React: Not able to render values in an Object
- I'm not able to render content, when I click on React Router Link
- I'm not able to render an object property that's inside an array
- not able to change value using handleChange() with spread operator (...) in react class component() on object
- Reducer updates state object which it should not be able to access
- Receiving data from server as json data but not able to parse the data in react
- Not able to iterate over object using map
- React Redux not able to insert an object into nested array
- Not able to link a component in react js
- Not able to display the data stored in a state object in react
- Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema
- Object is not extensible error when creating new attribute for array of objects
- Pass object through Link in react router
- React Router work on reload, but not when clicking on a link
- react routing is able to handle different url path but tomcat returns 404 not available resources
- React native - objects are not valid as a React child (found: object with keys {$$typeof, type, key, ref, props, _owner, _store})
More Query from same tag
- The value in the INPUT field cannot store in state of React
- Proper way to invoke external component's method in React.js
- React Redux: Can useDispatch be used to connect to an action creator? If so , how?
- How to import and use D3-tube-map in react.js
- React infinite loop returned by array even with dependency added
- How to change a hook inside text input in React.js?
- Reset component into modal
- Bootstrap Modal renders in React Component but is not visible
- Axios baseURL is not appending with the URL in react.js
- setState not working in setInterval
- REACT: Add highlighted border around selected image
- How to customize scrollbar in Material UI?
- How to get new store after dispatch?
- How to update the state in different mobile screens using React Hooks
- Trying to access API response from server on client-side
- Preview File before uploading in proper way.(React&Typescript)
- React create Bootstrap grid of unknown size
- flow type dismiss warning of `Experimental decorator usage`
- How can i store data from react-hook-forms in cookies?
- Why is my home page component rendering on every route?
- not sure on how to add a delete function to my mern app using API's
- React onClick event firing one click too late
- Express CORS request with axios fails
- Validation pattern to not allow users to add strings without space separators
- Is it alright to have 2 async await function inside the useEffect?
- SyntaxError with Jest and React importing SCSS files
- How can I make TypeScript know which proptypes I am using?
- How to implement filtering logic in React table?
- Can't load font-awesome with Webpack
- React chained setState breaking render