Skip to content

Instantly share code, notes, and snippets.

View parthibd's full-sized avatar
💭
Coding marathon.

Parthib Dutta parthibd

💭
Coding marathon.
  • India
View GitHub Profile
// CatInputs.js
import React from 'react';
import PropTypes from 'prop-types';
const CatInputs = ({ idx, catState, handleCatChange }) => {
const catId = `name-${idx}`;
const ageId = `age-${idx}`;
return (
<div key={`cat-${idx}`}>