project_next_14_ai_prompt_sharing
project_next_14_ai_prompt_sharing copied to clipboard
We could check if in a post have more tags with or without hash
A user should be able to write a tag with or without #, or write multiple tags without worrying about the final rendering. For this, it would be interesting to add this:
You can just shorten your code length by doing this instead:
{post.tag.includes("#") ? post.tag : `#${post.tag}`}
This way, whether or not a user remembers to include '#', it's not gon be an issue.