Create a React hook that can simulate a pulse-like cycle between animation states through different durations per animation state.
This is a simple example of how to build an inline edit text input with React Hooks.
Here's another helpful React hook. This one returns the dimensions of an element that's passed to it.