GithubHelp home page GithubHelp logo

rjs2-theindex-jsx's Introduction

Introduction

You're given a project that displays the following:

TheIndex Homepage

This page is displayed using just HTML, written in the public/index.html file. Your job is to recreate this page using JSX in the src/App.js file.

Setup

  1. Fork the repository
  2. Clone it.
  3. cd into the project directory.
  4. Install the required packages for the task.
$ yarn install

5. Run the project

$ yarn start

6. After you make any changes, you don't need to do anything. The page will refresh automagically!


Task

1. HTML to JSX

  1. Run the project, see what it looks like.
  2. The index.html file has a div tag with id="app". Your task is to copy all of the content within that div into the App's component function in App.js.
  3. Convert it to valid JSX.
  4. You'll know when you're done if the page looks exactly the same as it did in step one and you have no errors or warnings in your console.

2. Dynamic Data

You may have noticed that there's a file called data.js in your src/ directory. This file exports an array called authors. Each element in that array contains the data for a single author.

  1. Inspect the authors array in src/data.js, and familiarize yourself with its contents.
  2. Import this array into your App.js file: import authors from './data'.
  3. Currently, all the authors in App.js are being hardcoded. Replace the hardcoded text with values from the authors array.

Submission

  1. Push your code to Github

rjs2-theindex-jsx's People

Contributors

lailz avatar octowl avatar

Watchers

 avatar  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.