I tested answers, same results. In fact, there is no problem with my code or answers, let's see how it solved.
The structure of MyList
component is as follow:
return (
...
// the problem is one of style classes of my <p>
<p className="c3 c4">
// components contains some <span className="c1 c2">...</span>
{components}
</p>
...
)
And the c4
class is exactly:
.c4 {
float: right;
}
I don't know how but when i remove this class from <p>
it works fine.
The problem solved, and thanks for all the replies.