Notice
Recent Posts
Recent Comments
Link
목록2023/01/28 (1)
Silver Library (Archived)
Crash note - list, key, fake data generator
An example of a simple render() function that creates a list of elements using the map() function, and assigns a unique key to each item in the list: import React from 'react'; class MyComponent extends React.Component { render() { const items = ['item 1', 'item 2', 'item 3']; return ( {items.map((item, index) => {item})} ); } } In this example, the render() function creates an array of strings ..
F5. Library of Tools/React.js
2023. 1. 28. 21:32