Skip to content

✨ [Feature request]: Add Random Quote Generator as a new play #1625

@rajnishpatell

Description

@rajnishpatell

Contributor Guidelines

  • I have read the guidelines and discussion

Is your feature request related to a problem? Please describe.

This is not related to a problem but is intended to add a fun and educational feature.
It will help new learners understand how to handle state and randomization in React.

Describe the solution you'd like.

Create a new play component under src/plays/random-quote-generator/
that shows a random quote from a list or an external API.
The component will have a button labeled “New Quote” that updates the displayed quote dynamically.

Describe alternatives you've considered.

Instead of static quotes, we could extend it later to fetch quotes from an API like type.fit or quotable.io.
However, for simplicity, the first version will use a local array of quotes.

Screenshot / Screenshare

No response

Additional context

I have already explored the ReactPlay project and its play structure.
I plan to follow the existing component format, styling conventions (TailwindCSS), and commit message rules.
This feature aligns with ReactPlay's goal of providing small, educational React examples.

Record

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions