Skip to content

Instantly share code, notes, and snippets.

View hutchcrowley's full-sized avatar
💭
Coding

Hutch Crowley hutchcrowley

💭
Coding
View GitHub Profile
@hutchcrowley
hutchcrowley / CharacterList.js
Last active November 15, 2019 23:42
Search form component - needs to filter data from an API call
import React, { useState, useEffect } from 'react'
import { Link } from 'react-router-dom'
import axios from 'axios'
import CharacterCard from './CharacterCard'
import SearchForm from './SearchForm'
export default function CharacterList ()
{
const [characters, setCharacters] = useState([]);
@hutchcrowley
hutchcrowley / App.js
Last active December 12, 2019 19:16
Attempting to retrieve user data from the GitHub API and render the data using React class component lifecycle methods. Help!
import React from 'react'
import './App.css'
import axios from 'axios'
import UserCard from './Components/UserCard'
// import FollowersList from './Components/FollowersList'
class App extends React.Component {
constructor(props) {