Skip to content

codefellows-seattle-javascript-401d19/26-frontend-tooling-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

401 JS -- Lab 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 a 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

  • package-lock.json -- with the package.json lockfile

  • webpack.config.js -- with webpack config

  • src/ -- conating the frontend code

  • src/main.js -- containing the entire app

  • src/style -- containing your sass

  • src/style/main.scss -- containing the frontend code

  • add a new file .babelrc that looks like:

{
  "presets": ["es2015", "react"],
  "plugins": ["transform-object-rest-spread"]
}

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 says "click me"
      • onClick the button should generate new content on the app state using cowsay and faker
    • A pre tag that displays the App's state content

Documentation

Write a description of the project in your README.md

Bonus 1pt

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors