jsxCopy code
import React from 'react';
import { Link } from 'react-router-dom'; // Import Link from React Router if not already imported
import RoomOne from './RoomOne'; // Import RoomOne component
import RoomTwo from './RoomTwo'; // Import RoomTwo component
import RoomThree from './RoomThree'; // Import RoomThree component
function Door() {
return (
<div className="door">
<h1>Choose a room to enter:</h1>
{/* Use Link to navigate to different rooms */}
<Link to="/room-one">Room One</Link>
<Link to="/room-two">Room Two</Link>
<Link to="/room-three">Room Three</Link>
</div>
);
}
export default Door;