I am working with an array that contains objects which I need to display in ListItems of a List. My goal is to show these ListItems from the array Objects in a layout where odd numbers are on the left and even numbers are on the right. However, I am facing an issue as float:right
is not functioning as expected. You can view my code in this CodeSandBox link.
list: {
marginTop: "8%",
float: "right",
marginBottom: theme.spacing(2)
}
I'm trying to figure out what's wrong in my code. Can you help me identify the issue?