🤓2) Creando elementos HTML con React.createElement API
Creando un elemento HTML sin React
<html>
<body>
<div id="app"></div>
<script>
const rootElement = document.getElementById('app');
const element = document.createElement('div');
element.textContent = 'Hello word';
element.className = 'container';
rootElement.appendChild(element)
</script>
</body>
</html>Creando un elemento HTML con React
Last updated