Could you try it?
Create another element in the message, for example post.link , then assign a link to it before sending post to the rendering function.
post.link = '/posts/+ id.toString();
So, instead, the following rendering function should be performed.
return <li key={post.id}><a href={post.link}>{post.title}</a></li>
Khachornchit Songsaen Nov 19 '17 at 13:06 on 2017-11-19 13:06
source share