Check out example codes for "selenium set chrome executable path". It will help you in understanding the concepts better.

Code Example 1

chromedriver = "/path/to/chromedriver"
options = Options()
options.binary_location = '/path/to/chrome'
driver = webdriver.Chrome(chromedriver, chrome_options=options)

Code Example 2

ChromeOptions options = new ChromeOptions();
options.setBinary("/path/to/chrome/binary");

ChromeDriver driver = new ChromeDriver(options);

Learn ReactJs, React Native from akashmittal.com