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

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

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

12条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-12 23:36

    First Install React dev tools if not installed and then use the run below code in the browser console :

    __REACT_DEVTOOLS_GLOBAL_HOOK__.renderers.get(1).version
    

提交回复
热议问题