2

I have a React app and I'd like to get the version number that the browser has cached and is showing to the user. How can I do this? Thanks.

I have the following in package.json:

{
  "name": "arkreskin",
  **"version": "0.2.04.1",**
  "private": true,
}
Conrad Addo
  • 424
  • 1
  • 5
  • 15
  • 1
    [You need an .ENV file](https://stackoverflow.com/questions/45978230/get-version-number-from-package-json-in-react-redux-create-react-app). – Andy Sep 22 '21 at 19:09
  • I see in that link how you can get the version, but what about the version which is cached and currently running in the browser? – Conrad Addo Sep 22 '21 at 21:42

0 Answers0