Enabling a select list in React.js apps

For the complete example, see the GitHub repository here. We use the react-select package to create a dropdown that loads a set of options through a variable (or through an API) and initiates an onChange function call (which in this case exists in the parent component, thus: props.onChange. Here is the code in our DropdownListComponent1.tsx […]

Submit POST/GET data to API using Axios or Fetch in React.js app

For the GitHub repository, see here. In this app, you can contact the API that listens on a given port for a log-in and then an access to a resource that is password protected. You access the app either through axios or fetch. Credentials are needed to be sent since you tell the API what […]