Check props value from a component (ReactJS) inside of Playwright

Hello so Im fairly new to e2e testing and one of the things I want to test is when I change the shipping address I also want to set it to the billing address. So for instance if I set the Grove Street as my shipping address in the input field I also want it to be the same for the billing address. Is there a way for me to check the billing address as well as the shipping address that way

Here is my component:

const Delivery: React.FC<DeliveryProps> = ({ data}) 

and that data is modeled like this

data = {
...some other data
shippingAddress:string;
billingAddress:string;}

So in conclusion what I would like to do is fill the address field like so:

await checkout.verifyAddressInputField(page).fill('Grove street');

And to check the props value of my whole component aka the data props mainly shippingAddress and billingAddress

Any help would be great, thanks in advance