// Do not edit - start
const scores = [
{ name: 'Joe', value: 5.0 },
{ name: 'Jane', value: 7.6 },
{ name: 'Jules', value: 6.1 },
{ name: 'Jennevieve', value: 2.2 }
];
// Do not edit - end
/**
* Requirements
* 1. Create a component that takes a name and a value as properties and outputs them to the page
* 2. Output the scores array found in App.js by making use of the component created in step 1. Sort entries by descending score (value)
* 3. Style the score board so that odd entries have a grey background
* 4. Change the component you created in step 1 so that it is removed from the score board when clicked
*/
const App = props => {
return (
<div>
<h2>Score board</h2>
</div>
);
};
ReactDOM.render(<App />, document.getElementById('app'));
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.