How to CSS display:none within conditional with React JSX?

后端 未结 3 623
南笙
南笙 2021-01-31 07:46

I\'m trying to render a div on the same page when the user clicks on a link.

My HTML page:

Stores&l

3条回答
  •  滥情空心
    2021-01-31 08:39

    You can also conditionally create the element via

       { 
         this.state.showStore 
         ? 
    a lot more divs
    : null }

提交回复
热议问题