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

개념/React9

React Component) change to root component to class component ### Key Components - **External Scripts**: It includes React and ReactDOM from unpkg.com, a global content delivery network (CDN) for everything on npm. The `crossorigin` attribute is used for CORS (Cross-Origin Resource Sharing) requests. Babel standalone is also included to compile JSX code directly in the browser, indicated by the `type="text/babel"` attribute on the script element containing.. 2025. 1. 11.
React Component) Child to Parent change state proper type ### Breakdown of the Application - **React and ReactDOM Libraries**: The application includes React and ReactDOM libraries via CDN, using the UMD (Universal Module Definition) format. Babel standalone is also included to allow JSX syntax to be directly used within the browser. - **The `App` Component**: - This is a class-based component that serves as the parent component in the hierarchy. - It .. 2025. 1. 10.
React Component) Component array ### First Example: Static List - **Component**: `App` - **Container**: `` - **Description**: This component manually constructs an array of `` elements containing fruit names and returns them wrapped within a `` element. The list is static and directly written within the `render` method, illustrating the simplest form of list rendering in React. ### Second Example: Dynamic List from State - **Co.. 2025. 1. 9.
React Component) component property ### External Scripts The document includes three essential scripts from unpkg.com: - **React**: The React library, which is the core framework providing the component-based architecture. - **ReactDOM**: The library responsible for interacting with the DOM, allowing React components to be rendered into the actual webpage. - **Babel Standalone**: Enables JSX syntax to be used directly in the brows.. 2025. 1. 8.
728x90
반응형
LIST