Closed AromaR closed 6 years ago
@AromaR you need to create the pull request on the develop branch. Click the "edit" button on the right of this page's title and select "base:develop". For next time, when creating a pull request, on top you get to select to which branch the pr should be created.
@anantoghosh did that. Thanks
@AromaR Please add proper commit messages, so that it becomes easier for everyone to track changes to the source code.
Great 👍 Merged #73
Adding Score Component
Usage
<ScoreComponent score={var}/>
The initial score is zero. I've used states here to set it to 0 initially. There's a function called changeScore(amount), that let's you put in an amount to add or subtract (if the number is negative).There's a CSS file in the Component directory that can be modified to make any design changes A working example of the code is on my Codepen, and I've linked it here
Some other functionality
See the Pen React Score by ARodz (@AromaR) on CodePen.