JSFiddle - React, Tailwind, and code Playground
by dav sev
HTML
<div id="root"></div>
React
const store = () => {
const [data, setData] = useState([]);
useEffect(() => {
fetch('https://fakestoreapi.com/products/1')
.then(res=>res.json())
.then(json=>console.log(json))
})
}
const App = () => {
return <h1>Hello, JSFiddle React!</h1>;
};
// Render your component to the page
ReactDOM.render(<App />, document.getElementById('root'));