I have been using BootstrapTable to render the data from backend in tabular form.
My requirement is that on click of a row, I have to pass value of one of the column to another component (Aside.js)
I have tried everything, but not able to pass the values, which is very weird. Please help me in finding what i am missing.
Hi @AllenFang,
I have been using BootstrapTable to render the data from backend in tabular form. My requirement is that on click of a row, I have to pass value of one of the column to another component (Aside.js)
I have tried everything, but not able to pass the values, which is very weird. Please help me in finding what i am missing.
Here is the code :- DataTable.js :
class DataTable extends Component {
}
And Aside.js is as follows :-
import React, {Component} from 'react'; class Aside extends Component {
render() { return (
} }
export default Aside;
FYI : Both the alert statements in handleSelectSubscriber is printing correct data always.
Any help in resolving this would be appreciated.