Im developing a React application. When the user clicks on the view-button on a list view, I want that to be redirected to the view page with the item_id. I tried to use the hyperlink (< a> tag) tag to do this but it doesnt navigate with item_id of the clicked row. I want to know how to pass parameters with URL in react.
This is the code I tried.
<a className="btn btn-info btn-xs" href={'/#/fld-view/:id'} title="View"><span className="glyphicon glyphicon-eye-open" aria-hidden="true"></span></a>