# Test-Driven React 2: Text refers to "refactoring into HOC" (page 121)

**URL:** <https://forum.devtalk.com/t/test-driven-react-2-text-refers-to-refactoring-into-hoc-page-121/157153>\
**Category:** PragProg Customers\
**Tags:** book-test-driven-react-2, errata\
**Created:** [30 May 2024 12:23 UTC](https://forum.devtalk.com/t/test-driven-react-2-text-refers-to-refactoring-into-hoc-page-121/157153 "2024-05-30T12:23:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![horneber](https://forum.devtalk.com/user_avatar/forum.devtalk.com/horneber/32/6116_2.png) [@horneber](https://forum.devtalk.com/u/horneber)\
**Post date:** [30 May 2024 12:23 UTC](https://forum.devtalk.com/t/test-driven-react-2-text-refers-to-refactoring-into-hoc-page-121/157153/1 "2024-05-30T12:23:58Z")

</div>

Text says

```auto
Refactoring components into HOCs has the advantage of keeping code in
manageable units,

```

but HOC are not used anymore (in the book at least), as explained when introducing hooks.

---

<div class="post-metadata">

**Author:** ![TrevorBurnham](https://forum.devtalk.com/user_avatar/forum.devtalk.com/trevorburnham/32/2118_2.png) [@TrevorBurnham](https://forum.devtalk.com/u/TrevorBurnham)\
**Post date:** [2 June 2024 19:24 UTC](https://forum.devtalk.com/t/test-driven-react-2-text-refers-to-refactoring-into-hoc-page-121/157153/2 "2024-06-02T19:24:51Z")

</div>

Yep, thanks!
