Controlling the State
To set the initial state of the PanelBar, you can either:
To set the initial state of the PanelBar, provide a
uniquePrivateKey option is generated by the component itself and adopts a specific pattern that applies to each
- The generation starts from the first item, which is
'.0'. The items from the same level of depth are generated respectively as
'.2', and so on.
- The children of the first item are respectively
'.0.2', and so on.
To control the state of the PanelBar by using
- Keep in your state the
uniquePrivateKeyfrom the returned child of
- Pass it as a prop to the