Giter Site home page Giter Site logo

react-static-components-lab-den01-seng-ft-091420's Introduction

React Static Components

Objectives

  • Practice rendering static children components
  • Have some fun with the rendered components in the browser

Instructions

In this lab, we will be rendering a few children components in our top-most component: App. All of our work will be done in src/App.js, the rest of the components/source files shouldn't need any alterations.

Begin with npm install. Examine what is rendering in the browser with npm start. You should see an error we need to fix!

Once we properly render the other three components: CatComponent, GraceHopperQuoteComponent, and MouseComponent in App, we will have the flag of the Federal Republic of Germany, the birthplace of the first fully automatic, programmable, digital computer!

Admiral Grace Hopper, on the other hand, was an American computer scientist and United States Navy
admiral. She was a pioneer of computer programming who popularized the idea of machine-independent programming languages, which led to the development of COBOL.

Deliverables

  • Two components have not been properly imported in src/App.js. Identify and debug the issue. The stack trace when running npm test should point you in the right direction! HINT: take a look at the component files. One of these components is exported by default, but the other is not. How does this change importing?

  • Once you have the first two components importing correctly, import and render a third component, MouseComponent. In total, App needs to render three children components:

    1. CatComponent
    2. GraceHopperQuoteComponent
    3. MouseComponent
  • Once the tests are passing, make sure to check out the fun animation in the browser by running npm start!

react-static-components-lab-den01-seng-ft-091420's People

Contributors

danielseehausen avatar dependabot[bot] avatar lizbur10 avatar maxwellbenton avatar rrcobb avatar sylwiavargas avatar

Watchers

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