React app to search Github profiles. This app uses the Context API along with the useContext and useReducer hooks for state management.
- Use environment variables to hide Github API Key
- see template in
env.local.sample - add
.env.localto.gitignore - to use in Component:
const API_KEY = process.env.REACT_APP_API_KEY - see documentation: https://create-react-app.dev/docs/adding-custom-environment-variables/#adding-development-environment-variables-in-env
Runs the app in the development mode.
Open http://localhost:3000
Builds the app for production to the build folder.