Here's an example of a web application using Create React App that meets the requirements you
provided:
To create a new Create React App project, open your terminal and run the following command:
Copy code
npx create-react-app my-app
cd my-app
Next, we'll create a Navbar component that displays the brand name and a "Get Users" button.
Create a new file called Navbar.js in the src/components folder with the
following code:
javascript
Copy code
import React from 'react';
const Navbar = ({ onGetUsersClick }) => {
return (
<nav className="navbar">
<span className="navbar-brand">Brand Name</span>
<button className="btn btn-primary" onClick={onGetUsersClick}>
Get Users
</button>
</nav>
);
};
export default Navbar;