Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Now fixed.
I think you have solved the kata correctly, even using
withProps
from recompose.The only thing here is you have not learned to build your own HOC as recompose does that for you.
The point of this kata is to help with getting started building your own HOC.
That is good feedback, perhaps have a couple tests for the fake models to see if
withPriceModel
can handle different price increases.I think I might have cheated as well. Maybe we should call withPriceModel ourselves in the test with diferent price increaments
@richkotze Could you fix the sample test to change that the Pro model should increase by 60 not 50.
Cheers.