Welcome to the React Refs Game! This project is a simple game built with React, utilizing refs and portals for practice. The game demonstrates the usage of React features to manage and manipulate the DOM.
Before you begin, ensure you have the following installed:
- Node.js: Download here
-
Clone the repository:
git clone https://github.com/Mrityunjay20/Refs-game
-
Change into the project directory:
cd Refs-game
- Install dependencies:
npm install
Game Description The React Refs Game is a simple interactive game where the player can practice using React refs and portals. The game provides opportunities to understand how refs can be used to interact with DOM elements and how portals enable rendering components outside their parent hierarchy.
Ref Interaction: Practice using refs to manipulate DOM elements.
Portal Usage: Understand the concept of portals by rendering components outside their parent hierarchy.
Simple Gameplay: Enjoy a straightforward game to reinforce the understanding of refs and portals.
npm run dev