![]() ![]() Words are fetched from free, third-party REST API called Bacon Ipsum.Īt the start of each test, the Start-Button component calls the startTest() function in the App component. startTest: Function to trigger start of testīutton which when clicked triggers start of test Where do the words come from?.Also renders the form for the user to type in during the test. Words to be typed along with current word that must be typed. wordsAfter: All words after the current word that has to be typed.wordsBefore: All words before the current word that has to be typed.wordToType: Current word user has to type to be counted towards wordsTyped.incrementWordsTyped: Function which increments wordsTyped by 1. ![]() ![]() User's WPM based on most recent test taken.testLoading: boolean condition stating whether API data is being fetched.testActive: boolean condition stating whether test is currently in session.wordsTyped: Number of words user has typed during test.wordsList: List of words user has to type.Official link: Basic component structure App Max's React Typing Speed WPM Test How to useĬlick here, read the instructions, and click start to begin. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |