JSFiddle - React, Tailwind, and code Playground

by Soviut

HTML

<script src="https://www.dropbox.com/static/api/1/dropbox-datastores-0.1.0-b2.js"></script>

JavaScript

var client = new Dropbox.Client({key: 'qipdatj36labvno'});

// Try to finish OAuth authorization.
client.authenticate({interactive: false}, function (error) {
    if (error) {
        alert('Authentication error: ' + error);
    }
});

if (client.isAuthenticated()) {
    // Client is authenticated. Display UI.
    console.log('authenticated');
}

client.authenticate();