Model View Controller (MVC)
What is MVC and how is it used for structuring apps
Summary
Example:
// services/BicycleService.js
import axios from 'axios';
const fetchBicycles = async () => {
const response = await axios.get('https://api.example.com/bicycles');
return response.data;
};
// Additional functions for interacting with AWS resources like DynamoDB and Lambda
export default {
fetchBicycles,
};Discussion
Pros:
Cons:
Last updated