This project is used to show axios's HTTP request capacity and how to intergrate axios, semanticui into react project. Axios is also one of my favorite news websites.
If you're interested in my demo project and want to learn some experience, you have two ways to build your own project.
-
git clone;
-
enter to the folder and install all the dependencies
npm install
-
start your app
npm start
-
install
create-react-app; -
create your react app
npx create-react-app <yourappname>
-
enter your app, enter dependencies
npm install axios
npm install semantic-ui-react semantic-ui-css
-
import semantic-ui-css into your project
// index.js import 'semantic-ui-css/semantic.min.css'
-
change the demo page to semantic basic page
- remove all content in return of function app();
- remove App.css and logo.svg;
- remove their imports in app.js;
- build a very basic page using semantic ui components;