Hi there!
Builder has this article with more information about passing Builder state into a custom component that you may find useful. More commonly you can also do the opposite and pass state from your code into Builder with the data
prop on the <BuilderComponent>
.
As well, I found this on the Github Repo about passing data and functions down
Hope this was able to clarify things a bit further! Please let us know if you have any further questions.