Check out example codes for "google chrome extensions content scripts matches". It will help you in understanding the concepts better.

Code Example 1

in your manifest.json:

 "content_scripts": [
   {
     "matches": ["http://*.nytimes.com/*"],
     "css": ["myStyles.css"],
     "js": ["contentScript.js"]
   }
 ],

Learn ReactJs, React Native from akashmittal.com