diff --git a/packages/react-devtools-core/src/standalone.js b/packages/react-devtools-core/src/standalone.js index f495ea063bc7c..065316a9fe71a 100644 --- a/packages/react-devtools-core/src/standalone.js +++ b/packages/react-devtools-core/src/standalone.js @@ -143,9 +143,27 @@ function onError({code, message}) { safeUnmount(); if (code === 'EADDRINUSE') { - node.innerHTML = `

Another instance of DevTools is running

`; + node.innerHTML = ` +
+
+ Another instance of DevTools is running. +
+
+ Only one copy of DevTools can be used at a time. +
+
+ `; } else { - node.innerHTML = `

Unknown error (${message})

`; + node.innerHTML = ` +
+
+ Unknown error +
+
+ ${message} +
+
+ `; } } diff --git a/packages/react-devtools/app.html b/packages/react-devtools/app.html index 83250645ce5ae..69dd6ae51cd9b 100644 --- a/packages/react-devtools/app.html +++ b/packages/react-devtools/app.html @@ -5,80 +5,123 @@ -
-
-

Waiting for React to connect…

-
-

React Native

-
The active app will automatically connect in a few seconds.
-
-

React DOM

-
- Add
- or +
+
Waiting for React to connect…
+
+
+
React Native
+
+ Open the in-app developer menu to connect.
-
+
+
+
React DOM
+
+ Add one of the following: + + to the top of the page you want to debug,
- before importing React DOM. + before importing React DOM.
-
-
Starting the server…
@@ -98,6 +141,12 @@

React DOM

} } + const link = $('#rn-help-link'); + link.addEventListener('click', event => { + event.preventDefault(); + require('electron').shell.openExternal(link.href); + }); + const $localhost = $("#localhost"); $localhost.innerText = `