Giter VIP home page Giter VIP logo

all-the-things's Introduction

all-the-things

Your task for today!

Each member of your team should add the following items to this project, following the GitHub Group Workflow Document:

  1. A piece of data in App.jsx. For example:

    const huntersThings = [
      {
        name: "energy drinks",
        image: "https://imgs.xkcd.com/comics/health_drink_2x.png",  
        attributes: ["efficient", "reusability", "not a taco", "beautiful"],
      },
    ]
  2. Add a new component. This component will live inside it's own directory in the Pages directory, just like the existing XxxxxxxThings.jsx files inside the XxxxxxxThings directories. Name the component appropriately, it will be used to iterate over the things you put into state in step one and display them inside of the ThingCard component. Your XxxxxxxThings.jsx file will look similar to this, changing names where appropriate:

    import ThingCard from '../../components/ThingCard/ThingCard'
    import { Link } from 'react-router-dom'
    
    const SillyThings = (props) => {
      return (
        <>
          <h1>Hunter's Things</h1>
          <Link to="/">Home</Link>
    
          {props.things.map((thing, idx) => 
            <ThingCard key={idx} thing={thing}/>
          )}
        </>
      )
    }
    
    export default SillyThings
  3. Add a link to your new component inside of Landing.jsx alongside the existing links:

    <>
      {/* All the <Link> components should live here */}
      <h1>All-The-Things</h1>
      <Link to="/the-manliest-things">Ben's Things</Link><br/>
      <Link to="/the-well-styled-things">David's Things</Link><br/>
      <Link to="/the-silly-things">Hunter's Things</Link><br/>
    </>
  4. In App.jsx make a new route that points to the new link you just made, and displays the component you just created (don't forget to import the component you just made!) It should look something like this:

    <Route
      path="/the-silly-things"
      element={<SillyThings things={huntersThings} />}
    />

After you have completed these steps follow the steps in the GitHub Group Workflow Document to get your work into the Git Commander's main repo from the project. When that is done pull any additional changes down to your local repository.

all-the-things's People

Contributors

heythatsneat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.