How to pass plugin instance to another place rather than a custom view?

In a custom view that extends class ItemView, I can intialize an view instance with this.plugin. With React context, this allows me to apply/update settings instantly. However, I can’t find a way to pass it to a Markdown Codeblock Renderer.

Should I use mobx or redux to conduct state management instead of the Context API?