简体   繁体   中英

How to create dynamic grid container in react?

I have to create a dynamic grid container so that despite the number of elements that came from the server, the main structure remains the same. That is, to repeat the given pattern every time.

Example below.

Example

Hei, check the codes in this link, looks match your need hopefully it can help you a bit https://codesandbox.io/examples/package/dynamic-react-grid

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM