Hi @khomenok,
Builder state is a global variable within the content entry. One way to use builder custom code is well explained here Builder form questions
Furthermore, I recommend you check out our forum post Accessing builderState in custom components withChildren and How to access data from Builder in a React Custom Component
Hope this helps, let me know if you’ve further questions!