(Yes, I'm aware of How to create a horizontal threshold line in plotly js? but that doesn't answer my question)
For Plotly Python, there's a useful method called add_hline. With it I can add labelled horizontal line within the graph.

When attempting to translate it into React JavaScript, I cannot find such methods and had to resort to:
Using shapes, which don't have labels

Using line chart overlays, which don't extend to full plot area

Are there better ways to create a graph that can be easily created with Plotly Python in Plotly.js?