PHP Classes

File: src/App.tsx

Recommend this page to a friend!
  Classes of Maniruzzaman Akash   WordPress React Plugin Kit   src/App.tsx   Download  
File: src/App.tsx
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: WordPress React Plugin Kit
Environment to develop new WordPress plugins
Author: By
Last change:
Date: 2 years ago
Size: 757 bytes
 

Contents

Class file image Download
/** * External dependencies */ import { HashRouter, Routes, Route } from 'react-router-dom'; /** * Internal dependencies */ import Header from './components/layout/Header'; import routes from './routes'; const App = () => { return ( <HashRouter> <div> <Header /> <hr className="wp-header-end" /> <Routes> {routes.map((route, index) => ( <Route key={index} path={route.path} element={<route.element />} /> ))} </Routes> </div> </HashRouter> ); }; export default App;