Skip to content

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Axios In React

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.

How to Deploy

If you're interested in my demo project and want to learn some experience, you have two ways to build your own project.

From Git

  1. git clone;

  2. enter to the folder and install all the dependencies

    npm install
  3. start your app

    npm start

From Scratch

  1. install create-react-app;

  2. create your react app

    npx create-react-app <yourappname>
  3. enter your app, enter dependencies

    npm install axios
    npm install semantic-ui-react semantic-ui-css
  4. import semantic-ui-css into your project

    // index.js
    import 'semantic-ui-css/semantic.min.css'
  5. change the demo page to semantic basic page

    1. remove all content in return of function app();
    2. remove App.css and logo.svg;
    3. remove their imports in app.js;
    4. build a very basic page using semantic ui components;

About

This is a small demo for understanding axios, react, and semantic ui

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages