# Cómo hacer que parte del texto en un párrafo sea negrita/cursiva/etc. usando funciones de helper.h

**URL:** <https://meta.discourse.org/t/how-to-make-part-of-text-in-a-paragraph-bold-italic-etc-using-helper-h-functions/160106>\
**Category:** UX\
**Created:** [7 Agosto, 2020 07:53 UTC](https://meta.discourse.org/t/how-to-make-part-of-text-in-a-paragraph-bold-italic-etc-using-helper-h-functions/160106 "2020-08-07T07:53:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [7 Agosto, 2020 08:51 UTC](https://meta.discourse.org/t/how-to-make-part-of-text-in-a-paragraph-bold-italic-etc-using-helper-h-functions/160106/2 "2020-08-07T08:51:51Z")

</div>

Los [parámetros de la función `h`](https://github.com/Matt-Esch/virtual-dom/blob/master/virtual-hyperscript/index.js#L19-L26) son `tagName, properties, children`. Puedes omitir `properties` si lo deseas y usar solo `tagName, children`. Los hijos pueden ser un único nodo o un array de varios nodos.

Así que creo que quieres algo como

```js
h('div', // <div>
  h('p', [ // <p>
    'Este texto ',
    h('i', 'está en cursiva') // <i></i>
  ]) // </p>
); // </div>

```

---

_[View the full topic](https://meta.discourse.org/t/how-to-make-part-of-text-in-a-paragraph-bold-italic-etc-using-helper-h-functions/160106)._
