Integrate with the shrtcode API to create shortened URLs and display them
Users should be able to:
- View the optimal layout for the site depending on their device's screen size
- Shorten any valid URL
- See a list of their shortened links, even after refreshing the browser
- Copy the shortened link to their clipboard in a single click
- Receive an error message when the form is submitted if:
- The input field is empty
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
To begin with, i structured the entire application with HTML and CSS.
Then i made the function that makes the API request and passed the API values to the application.
In the end, I made the application responsive.
- HTML
- SCSS
- Javascript
- React
- React JSX
- Axios
- Use SCSS
- Use React JSX
- Improve the use of useEffect and useState
Pedro Costa
See the result at https://pedrocosta2099.github.io/UrlShortener/