/react-meme-generator

Simple React application that allows you to generate custom memes by adding text to meme image templates.

Primary LanguageJavaScript

Meme Generator

image

This is a simple React application that allows you to generate custom memes by adding text to popular meme image templates.

Type your text into the top and bottom input fields.

Click the "Get a new meme image" button to generate a new meme with your custom text.

Installation

To install the app, clone the repository to your local machine and run npm install to install the necessary dependencies.

git clone https://github.com/tsv-stacks/react-meme-generator
cd react-meme-generator
npm install

Run npm start to start the development server.

Concepts Covered

This app uses React core concepts and helped me learn:

  • State and Props: The application uses React state to manage the meme image, top text, and bottom text, which are passed to child components as props.
  • Axios and API calls: The application uses the Axios library to make HTTP requests to the Imgflip API
  • React useEffect: The application uses the useEffect hook to fetch the list of meme templates from the Imgflip API when the component mounts.
  • Event handling: The application uses event handlers to update the state of the meme image and text fields when the user interacts with the form.