Files
2018-10-16 21:32:40 +05:30

20 lines
677 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Render HTML Elements to the DOM
localeTitle: Выделение HTML-элементов в DOM
---
# Выделение HTML-элементов в DOM
Чтобы отобразить элемент в DOm, мы используем следующий синтаксис
```javascript
ReactDOM.render(<item to be rendered>, <where to be rendered>);
```
## Решение
Следуя синтаксису, мы добавили бы эту строку кода, чтобы отобразить элемент JSX в div с идентификатором узла-вызова.
```javascript
ReactDOM.render(JSX,document.getElementById('challenge-node'));
```