Getting Started with React Apps
Build a basic app, send requests, and mock data.
2 posts · In reading order
Getting Started with React (Part 1): Building a Basic Application
Starting with Node.js environment setup, this article manually builds a basic React application with Babel, Webpack, an HTML entry point, components, and styles. It demonstrates the development server, hot updates, and bundling, and provides the project structure and example repository.
Getting Started with React (Part 2): Sending Requests and Mocking Data
Integrating Axios into a React login form, this article centralizes the request instance, wraps API calls, and uses promises to handle responses and end the submission state. It serializes form data with qs, mocks responses with Mock.js, and verifies the interaction through console output and loading animations.