How can one tell the version of React running at runtime in the browser?

前端 未结 12 1774
抹茶落季
抹茶落季 2020-12-12 23:07

Is there a way to know the runtime version of React in the browser?

12条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-12 23:53

    Open Chrome Dev Tools or equivalent and run require('React').version in the console.

    That works on websites like Facebook as well to find out what version they are using.

提交回复
热议问题