Can someone please guide me how to get the data from a text file in react js? Usually the data extracted from the API is in JSON format but this time I want to render the data that is in .txt file format.
for you to display a doc text like o told me using simple html and css you can use this exemple:
$(document).ready(function() {
$(".word").fancybox({
'width': 600, // or whatever
'height': 320,
'type': 'iframe'
});
}); // ready
<a class="word" href="//docs.google.com/gview?url=http://www.picssel.com/demos/downloads/Fancybox.doc&embedded=true">Open a Word document in Fancybox</a>