JSFiddle - React, Tailwind, and code Playground

JavaScript

function getValue() {
            const requestOptions = {
                method: "GET",
                header: {"Access-Control-Allow-Origin":"GET"}
            };
              fetch("https://api.plos.org/search?q=title:DNA", requestOptions)
                .then(
                    (response) => {
                        console.log(response.json());
                    }
                );
        }
        
        getValue();