react-golden-layout
react-golden-layout copied to clipboard
Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state.
I'm trying to use react-golden-layout but I'm getting this error: Cannot update during an existing state transition (such as within render). Render methods should be a pure function of props and state.
Would you please show a full example how to use it?
my code: ` render() {
return (
<GoldenLayout
className="goldenLayout"
>
<Row>
{ {createGoldenLayoutComponent(IncrementButtonContainer, {
isClosable: false,
title: "Foo's Title"
})} }
</Row>
</GoldenLayout>
);
}`
It's saying that I can not use it in the render function. Also where I can pass the config for the golden layout?
I have the same issue
Same issue. Any updates? Is this still maintained?
Same issue...
this repo is not stable , it's not trustable
I ended up using the following branch, it works: https://github.com/Slowki/react-golden-layout/tree/fix/state-transition-update