Check out example codes for "adding logo support to wordpress site". It will help you in understanding the concepts better.

Code Example 1

add_theme_support( 'custom-logo' );

Code Example 2

function themename_custom_logo_setup() {
 $defaults = array(
 'height'      => 100,
 'width'       => 400,
 'flex-height' => true,
 'flex-width'  => true,
 'header-text' => array( 'site-title', 'site-description' ),
 );
 add_theme_support( 'custom-logo', $defaults );
}
add_action( 'after_setup_theme', 'themename_custom_logo_setup' );

Code Example 3

if ( function_exists( 'the_custom_logo' ) ) {
 the_custom_logo();
}

Learn ReactJs, React Native from akashmittal.com