BAEL-4842 - Use React and Spring Boot to Build a Simple CRUD App

Initial source module for the article
This commit is contained in:
Sallo Szrajbman
2021-03-28 17:00:33 +01:00
parent d1d6cafac1
commit 6a82efdd39
30 changed files with 17577 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
import React, {Component} from 'react';
import {Navbar, NavbarBrand} from 'reactstrap';
import {Link} from 'react-router-dom';
export default class AppNavbar extends Component {
constructor(props) {
super(props);
this.state = {isOpen: false};
this.toggle = this.toggle.bind(this);
}
toggle() {
this.setState({
isOpen: !this.state.isOpen
});
}
render() {
return <Navbar color="dark" dark expand="md">
<NavbarBrand tag={Link} to="/">Home</NavbarBrand>
</Navbar>;
}
}