How can I render the data in this javascript object with .map()?

I constructed the following javascript object by combining data from a firebase database: [ { “-Lsx4Wzd4k7Xamoxoior”: { “groupId”: “-Lsx4Wzd4k7Xamoxoior”, “numMembers”: 1, “groupName”: “GroupOne”, “imageUrl”: “” }, “-Lsx4aoXcClZrOMN3zR_”: { “uid”: “-Lsx4aoXcClZrOMN3zR_”, “numMembers”: 1, “groupName”: “GroupTwo”, “imageUrl”: “” }, “-Lsxzv0N9owZ7cWiH-H_”: { “uid”: “-Lsxzv0N9owZ7cWiH-H_”, “numMembers”: 1, “groupName”: “GroupThree”, “imageUrl”: “” } } ] I set the groupsData state…

Google App Engile , Node JS, not work serving javascript static files

When I put into addressbar the css, images work but my javascript files not work. Eg: https://(…).appspot.com/build/teste.css (work) https://(…).appspot.com/build/teste.js (404 error – The requested URL /build/mycomponent.js was not found on this server.) My app.yaml: runtime: nodejs10 handlers: – url: /images static_dir: static/images expiration: ’10s’ – url: /css static_dir: static/css expiration: ’10s’ – url: /build static_dir:…

JavaScript String replace second occurrence in XML

Hi have the following xml: <?xml version=”1.0″ encoding=”UTF-8″?> <library> <item> <books> <?xml version=”1.0″ encoding=”UTF-8″?> &lt;Fiction&gt; &lt;tt:Author&gt;A&lt;/tt:Author&gt; &lt;tt:BookName&gt;45&lt;/tt:BookName&gt; &lt;/Fiction&gt; </books> </item> </library> I want to basically replace the second occurence of the entire xml tag with blank space. So basically replace <?xml version=”1.0″ encoding=”UTF-8″?> string which appears after the <books> opening tag with a space. Any…