This is a recreation of the Treemap Customization. It is rewritten to use React instead of only d3, if you come from the 2021 Data Visualization course, this template will be more understandable for you.
It also has an example using react hooks to "convert" the code.