Posts by Abdiel • 41 points
3 posts
-
0
votes2
answers1049
viewsA: innerHTML at React
How are you using the dangerouslySetInnerHTML? There is a specific syntax to pass this prop. Look at this example: import React from "react"; import "./styles.css"; const list = [ '<p>This…
-
0
votes1
answer8393
viewsA: Possible Unhandled Promise Rejection Error
Most likely the API is returning an error (HTTP), and Axios generates an exception (which is not being handled) in this case. When using async/await, the ideal is to do the asynchronous operations…
-
1
votes2
answers379
viewsA: Using the filter method an object array
You can chain the filter with a map: const musicData = [ { artist: 'Adele', name: '25', sales: 1731000 }, { artist: 'Drake', name: 'Views', sales: 1608000 }, { artist: 'Beyonce', name: 'Lemonade',…