Я пытаюсь обернуть текст вокруг изображения, и если я использую следующий код:
<div className="container">
<img src={myImageSource} alt="swimmer" height="300" width="300" style="float: left" />
<p> This is where the other text goes about the swimmer</p>
</div>
Теперь я понимаю, что это style="float: left"
html 5. Однако, если я использую следующий код:
<div className="container">
<img src={myImageSource} alt="swimmer" height="300" width="300" align="left" />
<p> This is where the other text goes about the swimmer</p>
</div>
Работает!Почему я не могу использовать стиль в React?