How to set Accordion opened all as default in Ant-design-mobile?

I am using Ant-design-mobile library in reactjs. How to set Accordion that are opened all as default ?

<Accordion defaultActiveKey="all" className="my-accordion" onChange={this.onChange}>
          <Accordion.Panel header="Title 1">text </Accordion.Panel>
          <Accordion.Panel header="Title 2" className="pad">text </Accordion.Panel>
          <Accordion.Panel header="Title 3" className="pad">text </Accordion.Panel>
        </Accordion>

Please help.



from Recent Questions - Stack Overflow https://ift.tt/3fp8uPg
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation