JSFiddle - React, Tailwind, and code Playground

by Evgeniy Kvasyuk

JavaScript

const regex = /\b{targetPath}\b/g

url.replace(regex, `help/${targetPath}`)