Renames a single prop.
renameProp(
oldPropName : string,
newPropName : string,
) : Function
import {
compose,
renameProp
} from 'incompose';
const LeaderBoard = (props) => (
<div>
<h1>{props.name} has a score of {props.score}</h1>
</div>
);
export default compose(
renameProp('count', 'score'), // rename prop `count` to `score`
)(LeaderBoard);