key understandings
- Making a fetch request in componentDidMount() using async/await.
- Understanding how to resolve promises from async function.
- Storing results in state
- refactor out components
A simple module demonstrating how to login to a Rails server retreiving auth token
JavaScript