E
E
Evgeny Koryakin2019-02-26 22:20:20
React
Evgeny Koryakin, 2019-02-26 22:20:20

How to implement custom design depending on the number of objects?

Hello.
Need help implementing style mapping.
If the number is even, then the component is displayed with the "block" style, if not even, then the last component is displayed with the "list" style. How to do this?
For a clearer picture of the question:
5c75915b78e75165321517.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2019-02-26
@Incorrectfree

For example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question