Giter Site home page Giter Site logo

blog-builder-react's Introduction

Blog Builder

Use this repository as a template for your deliverable

Learning Objectives

  • Use attributes in parent components to pass data down to child components as props
  • Use useState hook to create and update simple (primitive) component state
  • Use arrow function properties to define event handlers
  • Use function syntax to create presentational components
  • Destructure props and state in functional components
  • Use JSX to produce & render a React component
  • Use {} as "portals" in the render method to do JavaScript inside our HTML.

Description

The objective of this application is to create a mini "Blog Builder" that contains an editing panel and a preview panel. When the attributes in the editing panel are updated, their new values are reflected in the preview.

You have been provided with <Home/> container component, an <Editor> presentational component, and a <Preview> presentational component. Your job is to add state to the <Home> component which will then be passed down to the <Editor> and <Preview> components.

Goal

When you initially launch the app, if you try to type anything in the editor inputs, the app will fail because its expecting certain props. Look closely at both the <Editor> and the <Preview> components. What props do they have in common? How can you define common state between them and pass it down?

Hint: start with a single prop such as title and try to get it displaying on both the editor panel and the preview. Once that is working, ACP, then continue with each additional input on the editor panel

Rubric

Task Points
1 point for each state variable being passed properly to the <Editor> component 5
1 point for each state variable being passed properly to the <Preview> component 5

blog-builder-react's People

Contributors

forestheims avatar

Watchers

 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.