From fba4873cbb4a2dfa7e0798622a0debfe305a9b7b Mon Sep 17 00:00:00 2001 From: Yash Bodade <142400356+yashhhYB@users.noreply.github.com> Date: Fri, 26 Sep 2025 21:53:36 +0530 Subject: [PATCH 1/2] Update IssueList.js --- fixtures/dom/src/components/IssueList.js | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/fixtures/dom/src/components/IssueList.js b/fixtures/dom/src/components/IssueList.js index 553fdb3fd8577..23cca525803c2 100644 --- a/fixtures/dom/src/components/IssueList.js +++ b/fixtures/dom/src/components/IssueList.js @@ -1,4 +1,5 @@ const React = window.React; +import PropTypes from 'prop-types'; function csv(string) { return string.split(/\s*,\s*/); @@ -13,14 +14,21 @@ export default function IssueList({issues}) { issues = csv(issues); } - let links = issues.reduce((memo, issue, i) => { - return memo.concat( - i > 0 && i < issues.length ? ', ' : null, - + let links = issues.map((issue, i) => ( + + {i > 0 ? ', ' : ''} + {issue} - ); - }, []); + + )); return {links}; } + +IssueList.propTypes = { + issues: PropTypes.oneOfType([ + PropTypes.arrayOf(PropTypes.string), + PropTypes.string, + ]), +}; From 694c489d0a5d7370ce52091bcae8f767376deb0f Mon Sep 17 00:00:00 2001 From: Yash Bodade <142400356+yashhhYB@users.noreply.github.com> Date: Fri, 26 Sep 2025 22:09:56 +0530 Subject: [PATCH 2/2] Update package.json --- fixtures/dom/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fixtures/dom/package.json b/fixtures/dom/package.json index d71dbe3ffae54..8590e8e161381 100644 --- a/fixtures/dom/package.json +++ b/fixtures/dom/package.json @@ -20,8 +20,8 @@ }, "scripts": { "dev": "react-scripts start", - "predev": "cp -a ../../build/oss-experimental/. node_modules", - "build": "react-scripts build && cp build/index.html build/200.html", + "predev": "xcopy /E /I /Y ..\\..\\build\\oss-experimental\\* node_modules\\", + "build": "react-scripts build && copy build\\index.html build\\200.html", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject" }