Check Website Live on heroku : https://word-frequency-s.herokuapp.com/
Design and build the following:
-
A Reactjs front end which accepts a number input N with a Submit button.
-
On entering a value and pressing submit, fetch the contents of https://raw.githubusercontent.com/invictustech/test/main/README.md
-
Find the top N most frequently occurring words in this file (DO NOT use a ready made module for frequency computation).
-
Display the top N words and their frequency of occurrence in the frontend, in a tabular format.
-
Download this repo and unzip it.
-
Open frequency directory in terminal.
-
Run "npm install".
-
Run "npm start".
-
Open browser and hit http://localhost:3000/.
-
Header - It contains the website name at the top of website. On clicking it, the home page gets reloaded.
-
Input - It ask one number as input and then on clicking submit button, all the computation tasks happens. It fetches all the data from that external link and calculate the frequency of each word. Then that result is passed as props to Table component.
-
Table - It loops through the props.result and render in tabular format.
-
Footer - It contains the copyright details of website.
-
react
-
react-dom
Note: No external package is used
Input = 5
Output Sceen: