Playground: fix how React is imported (#8332)
see https://twitter.com/sebmarkbage/status/1250284377138802689
This commit is contained in:
1 parent
382450172c
commit
c5ece64c21
12 files changed
+15
-15
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import React from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
import * as React from "react";
|
||||
import * as ReactDOM from "react-dom";
|
||||
|
||||
const root = document.getElementById("bottom-bar");
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React from "react";
|
||||
import * as React from "react";
|
||||
|
||||
import { stateToggler, shallowEqual } from "./helpers";
|
||||
import * as storage from "./storage";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React from "react";
|
||||
import * as React from "react";
|
||||
|
||||
import { Button, ClipboardButton } from "./buttons";
|
||||
import EditorState from "./EditorState";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React from "react";
|
||||
import * as React from "react";
|
||||
|
||||
export default class PrettierFormat extends React.Component {
|
||||
constructor() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
import * as React from "react";
|
||||
import * as ReactDOM from "react-dom";
|
||||
|
||||
const root = document.getElementById("version");
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React from "react";
|
||||
import * as React from "react";
|
||||
import ClipboardJS from "clipboard";
|
||||
|
||||
export const Button = React.forwardRef((props, ref) => (
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import "codemirror-graphql/mode";
|
||||
|
||||
import React from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
import * as React from "react";
|
||||
import * as ReactDOM from "react-dom";
|
||||
|
||||
import Playground from "./Playground";
|
||||
import VersionLink from "./VersionLink";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import CodeMirror from "codemirror";
|
||||
import React from "react";
|
||||
import * as React from "react";
|
||||
|
||||
class CodeMirrorPanel extends React.Component {
|
||||
constructor() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React from "react";
|
||||
import * as React from "react";
|
||||
import groupBy from "lodash/groupBy";
|
||||
|
||||
import { SidebarCategory } from "./components";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React from "react";
|
||||
import * as React from "react";
|
||||
|
||||
export function Sidebar({ visible, children }) {
|
||||
return (
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React from "react";
|
||||
import * as React from "react";
|
||||
|
||||
export function Checkbox({ label: _label, title, checked, onChange }) {
|
||||
return (
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React from "react";
|
||||
import * as React from "react";
|
||||
|
||||
import { Checkbox, Select, NumberInput } from "./inputs";
|
||||
|
||||
|
||||
Reference in new issue
Block a user