Skip to content

Commit

Permalink
👽 Removed React imports because of JSX transform
Browse files Browse the repository at this point in the history
  • Loading branch information
max-programming committed Nov 2, 2020
1 parent d740429 commit 0deb61a
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import Container from './components/Container'

function App() {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Container.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useEffect } from 'react'
import { useState, useEffect } from 'react';
import Header from './Header.js'
import Search from './Search.js'
import Results from './Results.js'
Expand Down
1 change: 0 additions & 1 deletion src/components/Header.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react'
import GitHubButton from 'react-github-btn'
import './Header.css'

Expand Down
2 changes: 1 addition & 1 deletion src/components/Item.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, {useState} from 'react'
import { useState } from 'react';
import './Item.css'

function Item(props) {
Expand Down
1 change: 0 additions & 1 deletion src/components/Item.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react'
import {shallow} from 'enzyme'
import Item from './Item.js'

Expand Down
2 changes: 1 addition & 1 deletion src/components/Results.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect } from 'react'
import { useEffect } from 'react';
import Item from './Item.js'
import Clipboard from "clipboard";
import { v4 as uuidv4 } from 'uuid';
Expand Down
1 change: 0 additions & 1 deletion src/components/Results.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react'
import {shallow} from 'enzyme'
import Results from './Results.js'

Expand Down
1 change: 0 additions & 1 deletion src/components/Search.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react'
import './Search.css'

function Search(props) {
Expand Down
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from 'react';
import { StrictMode } from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';

ReactDOM.render(
<React.StrictMode>
<StrictMode>
<App />
</React.StrictMode>,
</StrictMode>,
document.getElementById('root')
);

0 comments on commit 0deb61a

Please sign in to comment.