프로그래밍 94

Managing a Component Tree - Component to Component, Function to Function

index.jsimport React from "react";import ReactDOM from "react-dom";import App from "./components/App";ReactDOM.render(, document.getElementById("root"));//CHALLENGE: I have extracted the Input Area, including the and// elements into a seperate Component called InputArea.//Your job is to make the app work as it did before but this time with the//InputArea as a seperate Component.// DO NOT: Modif..

프로그래밍/Web 2024.05.14

Changing Complex State - What to Do When You have Functions that Do the Same Thing

value:The value represents the current value of an HTML element. It is commonly used in input fields (e.g., text inputs, checkboxes, radio buttons).For example, when a user types text into an input field, the value of that field changes.In React, value is often used to manage state using the useState hook. name:The name attribute represents the name of an HTML element. It is commonly used in for..

프로그래밍/Web 2024.05.10

Keeper.js 2 - how to use arrow function and prop in your project

index.js import React from "react"; import ReactDOM from "react-dom"; import App from "./components/App"; ReactDOM.render(, document.getElementById("root")); //Challenge. Render all the notes inside notes.js as a seperate Note //component. note.js const notes = [ { key: 1, title: "Delegation", content: "Q. How many programmers does it take to change a light bulb? A. None – It’s a hardware proble..

프로그래밍/Web 2024.05.02