JSFiddle - React, Tailwind, and code Playground

by gurvinder372

HTML

<button class="button" onClick="home('My target url/file directory')">Test</button>

JavaScript

function goTo ( string)
    {
        window.location.href = string;
    }