- Create a frontend which contains a submit button on first load.
- On clicking the Submit Button, it will fetch the contents of https://www.terriblytinytales.com/test.txt .
- Then Parse the content and find the frequency of occurrence of each word .
- Then on the frontend, plot a histogram/Bar Chart of the 20 most occurring words.
https://react-assignment-ttt.vercel.app/
It contains the submit button and functions that is responsible of fetching the data and parsing into suitable format.
It Uses React-Chartjs npm package to show the count of 20 most frequent words in the file.
X-axis = top 20 words with highest occurrence
Y-axis = how many times they occurred in the file
- React.js
- React Chart js
- Chart js