If the parent component passes data to the child component, will the child component change accordingly when this data is changed in the parent component?

I have a child component that accepts a props ( data ), and the parent component is passed to the child component.

parent component uses:

<template>
  <sub-component :data="sub_data"></sub-component>
</template>

in subcomponents:


export default{
  props: {
    data: {
      type: Array,
      required: true
    }
  }
}

excuse me, after the sub_data data in the parent component is modified, will the data of the child component change accordingly,

?
Mar.01,2021

if I succeed in the test myself, it will change.

parent component:

<delete-selection-btn :selection="selection" ></delete-selection-btn>

Sub-component:

<script>

  export default{
    props:{
      selection: {
        type: Array,
        required: true
      }
    }
    ,
    data(){
      return {
        msg: 'hello vue'
      }
    },
    methods: {
      delete_selection_proptip_click(){
        console.log(this.selection)
      }
    }
  }
</script>    
Menu