Hello @kartik,
Use string concatenation:
href={'/posts/' + post.id}
The JSX syntax allows either to use strings or expressions ({...}) as values.
You cannot mix both. Inside an expression you can, as the name suggests, use any JavaScript expression to compute the value.
Hope it works!!