From 7385edadb7605e5b55d1366dfa46dc547f1a9fec Mon Sep 17 00:00:00 2001 From: PA4KEV Date: Sun, 26 Feb 2023 21:32:13 +0100 Subject: [PATCH] Add Drupal JSON API connection with BasicPage and ScrollSpy components --- package.json | 1 + src/App.js | 5 +++++ src/Pages/BasicPage.js | 45 ++++++++++++++++++++++++++++++++++++++++++ src/UI/ScrollSpy.js | 16 +++++++++++++++ 4 files changed, 67 insertions(+) create mode 100644 src/Pages/BasicPage.js create mode 100644 src/UI/ScrollSpy.js diff --git a/package.json b/package.json index 7cde236..66eaf9f 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "test": "react-scripts test", "eject": "react-scripts eject" }, + "proxy": "http://localhost:8080", "eslintConfig": { "extends": [ "react-app", diff --git a/src/App.js b/src/App.js index f9a933c..c19d8e9 100644 --- a/src/App.js +++ b/src/App.js @@ -1,3 +1,5 @@ +import React, {useEffect, useState} from 'react'; + import './overrides.scss'; import "bootstrap/dist/js/bootstrap.bundle.min"; @@ -31,6 +33,7 @@ import Balkon from './Pages/Radio/Balkon'; import Linux from './Pages/Linux/Linux'; import Footer from './UI/Footer'; +import BasicPage from './Pages/BasicPage'; function App() { @@ -60,6 +63,8 @@ function App() { }> }> }> + + }>