Git Product home page Git Product logo

26-frontend-tooling-and-react's Introduction

CF 26: Cowsay

Submission Instructions

  • Work in a fork of this repository
  • Work in a branch on your fork
  • Write all of your code in a directory named lab- + <your name> e.g. lab-duncan
  • Submit a pull request to this repository
  • Submit a link to your pull request on canvas
  • Submit a question, observation, and how long you spent on canvas

Learning Objectives

  • Students will be able to configure webpack to compile JS into a bundle
  • Students will be able to configure webpack to compile sass into a bundle
  • Students will be able to configure babel to transpile JSX and ES6 to ES5 javascript
  • Students will be able to create and render react components to the DOM
  • Students will be able to add event listeners to react components
  • Students will be able to update react component state

Requirements

Configuration

Your lab directory must include

  • README.md -- with documention about your lab
  • .gitignore -- with a robust gitignore
  • .eslintrc.json -- with the class .eslintrc.json file
  • .eslintignore -- with the class .eslintignore
  • .babelrc -- with all dependencies and dev-dependencies
  • package.json -- with all dependencies and dev-dependencies
  • yarn.lock -- with the yarn lockfile
  • webpack.config.js -- with webpack config
  • src/ -- containing the frontend code
  • src/main.js -- containing the entire app
  • src/style -- containing your sass
  • src/style/main.scss -- containing the frontend code

Feature Tasks

Create the following component

App
  • Should contain the entire application's view and state
  • Should have a property on the state called content
  • Should create a view with the following display
    • A heading with the title "Generate Cowsay Lorem"
    • A Button that displays "click me"
      • onClick the button should generate new content on the app state using cowsay and faker
    • A pre tag that displays the App state (content)

Documentation

Write a description of the project in your README.md

Stretch Goal

  • add a select menu that enables you to change the type of cowfile currently being used

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.