Git Product home page Git Product logo

hrla29-react-review's Introduction

react-review

HRLA29-react-review

#Start Server
npm install
npm run build
npm start

#Exercise-1 Rendering React to DOM
Render "Hello from React" to the div in index.html with an id of "app".

#Exercise-2 Creating a Functional Component in React
Create folder called Components within the client folder. Inside of components folder, create a file called App.jsx and build out a functional react component in that file that renders "Hello from Component" onto the DOM.

#Exercise-3 Passing Props into A Functional Component
Pass your first and last name down as props to your component from index.jsx

#Exercise-4 Refactoring a Functional Component to a Stateful Component
Refactor your functional component into a stateful class component.

#Exercise-5 Using Inputs to Update State
Inside of your class component, create an input field. Build out some functionality that will allow you to set your first name to the state object.

#Exercise-6 Dealing with Multiple Inputs
Repeat the process to your last name.

#Exercise-7 Add Another Component
Inside your components folder, create another file called List.jsx. Build out another stateful component. Add an string and an array object in state. Create a form that contains another input field. Build out functionality that will allow you to add text to the string element in state. Build out functionality that will allow you to add the string stored in state to the array stored in state. Then add three elements to the array. Render the List component inside of your App component.

#Exercise-8 Mapping Elements
Create another functional component called ListEntry.jsx in your components folder. Develop some functionality that will render the elements stored in the array in List.jsx to the page.

#Exercise-9 Adding Click Events
Add functionality such that when an element in that list is clicked, we are notified in the List.jsx component.

#Exercise-10 Conditional Rendering
Go back to App.jsx and develop some functionality that will only display List.jsx if the first and last name entered there match your own.

#Final Todo List Refactor
Refactor the code you have made into a Todo List app. This app should have all CRUD functionality. ie. Should be able to create todos, should be able to see todos, should be able to update todos, should be able to delete todos.

hrla29-react-review's People

Contributors

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