Skip to content

Fetch A Paragraph #3

@rectangle-man

Description

@rectangle-man

From the contributed file "paragraphs.json" located in "Assets/paragraphs.json", fetch a random element from an array (a paragraph) to the textarea of the class-name "fetchText" as a "placeholder".
Also implement the functionality of the reload button (which re-fetches a random paragraph from the .json file).

#HINT: By the help of react hooks like useEffects(), one could design a function that calls itself in a certain condition/time period.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions