JSFiddle - React, Tailwind, and code Playground JavaScript var arr = "test1/test2/test3/test4/test5".split("/"); console.log(arr);