Hi
First of all thank you for the great work. I am quite new in "React digging" and I was happy to see as not very difficult to render, some pages with your adminlte-2-react. You saved people a lot of time ;)
I am now questioning myself how to manage sidebar content dynamically. I've defined in app.js the
render() {
return (
<AdminLTE title={["App", "Generator"]} titleShort={["Ap", "Ge"]} theme="blue" sidebar={this.sidebar}>
...
I am thinking to use a component WideLocalStorage
and in each other components used for rendering some content I will get in class constructor
this.state = {
sideBar: WideLocalStorage.prototype.get_item('sideBar'),
...
and this way I could store in localStorage sidebar Items in any of the component when I need changes...
But need somehow to refresh the DOM CTRL+F5 work. For sure it should be done differently
Hi
First of all thank you for the great work. I am quite new in "React digging" and I was happy to see as not very difficult to render, some pages with your adminlte-2-react. You saved people a lot of time ;)
I am now questioning myself how to manage sidebar content dynamically. I've defined in app.js the
...
I am thinking to use a component WideLocalStorage
and in each other components used for rendering some content I will get in class constructor
this.state = {
sideBar: WideLocalStorage.prototype.get_item('sideBar'),
...
and this way I could store in localStorage sidebar Items in any of the component when I need changes...
But need somehow to refresh the DOM CTRL+F5 work. For sure it should be done differently