Skip to content

Commit c0b8cb5

Browse files
committed
chore(examples): Updated examples to no longer import React
1 parent fb06b47 commit c0b8cb5

File tree

13 files changed

+13
-13
lines changed

13 files changed

+13
-13
lines changed

examples/create-react-app-typescript/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { ReactElement } from "react";
1+
import type { ReactElement } from "react";
22
import { Route, Switch } from "react-router-dom";
33

44
import Layout from "components/Layout";

examples/create-react-app-typescript/src/components/Home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { ReactElement } from "react";
1+
import type { ReactElement } from "react";
22
import { TextContainer, Text } from "react-md";
33

44
export default function Home(): ReactElement {

examples/create-react-app-typescript/src/components/Layout/Layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { ReactElement, ReactNode } from "react";
1+
import type { ReactElement, ReactNode } from "react";
22
import { Link, useLocation } from "react-router-dom";
33
import {
44
ArrowDropDownSVGIcon,

examples/create-react-app-typescript/src/components/Layout/navItems.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { ReactNode } from "react";
1+
import type { ReactNode } from "react";
22
import {
33
LayoutNavigationTree,
44
LayoutNavigationItem,

examples/create-react-app-typescript/src/components/Route1.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { ReactElement } from "react";
1+
import type { ReactElement } from "react";
22
import { TextContainer, Text } from "react-md";
33

44
export default function Route1(): ReactElement {

examples/gatsby-typescript/src/pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { ReactElement } from "react"
1+
import type { ReactElement } from "react"
22
import { Text, TextContainer } from "react-md"
33

44
export default function index(): ReactElement {

examples/gatsby-typescript/src/pages/route-1.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { ReactElement } from "react"
1+
import type { ReactElement } from "react"
22
import { TextContainer, Text } from "react-md"
33

44
export default function Route1(): ReactElement {

examples/nextjs-typescript/src/components/Layout/Layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { ReactElement, ReactNode } from "react";
1+
import type { ReactElement, ReactNode } from "react";
22
import { useRouter } from "next/router";
33
import {
44
ArrowDropDownSVGIcon,

examples/nextjs-typescript/src/components/Layout/navItems.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { ReactNode } from "react";
1+
import type { ReactNode } from "react";
22
import {
33
LayoutNavigationTree,
44
LayoutNavigationItem,

examples/nextjs-typescript/src/components/LinkUnstyled.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { ReactElement, AnchorHTMLAttributes } from "react";
1+
import type { ReactElement, AnchorHTMLAttributes } from "react";
22
import Link, { LinkProps } from "next/link";
33

44
export interface LinkUnstyledProps

0 commit comments

Comments
 (0)