본문 바로가기
728x90
반응형
SMALL

전체 글374

React Component) item Component ### Key Concepts Illustrated - **React Component Structure**: Shows how to define React components using ES6 class syntax. Each component extends `React.Component` and implements a `render` method that returns JSX, a syntax extension for JavaScript that allows you to write HTML tags in JavaScript. - **Parent-Child Component Relationship**: Demonstrates the relationship between parent and child c.. 2025. 1. 5.
React Component) react site script ### Including React Libraries - You've included the React and ReactDOM libraries using CDN links. This is a common approach for small projects or examples where you want to quickly get started without setting up a build process with tools like Webpack or Parcel. - The Babel standalone library is also included via CDN. This allows you to use JSX directly in the browser by transforming it on the f.. 2025. 1. 4.
React Component) Style based on check status ### Key Features of the `App` Component - **State Initialization**: Inside the constructor, the component's state is initialized with a property `checked` set to `false`. This state controls the text color of the heading element. - **Event Binding**: The `handleClick` method, which updates the component's state based on the checkbox's state, is bound to the component instance in the constructor... 2025. 1. 3.
chapter 9) combination of array and object ### Key Points of the Script - **Students Array**: An empty array `students` is initialized to store the student objects. - **Populating the Array**: The `push` method is used to add objects to the `students` array. Each object represents a student and includes their name and scores in four subjects. - **Displaying Data**: `JSON.stringify(students, null, 2)` is called to convert the `students` a.. 2025. 1. 2.
728x90
반응형
LIST