No there is no respective limits of using props in a component yet I have used 12 props in a component
App.js component
import Map from './Map';
const arr = [1,2,3,4,5];
const arr1 = [1,2,3,4,5];
const arr2 = [1,2,3,4,5];
const arr3 = [1,2,3,4,5];
const arr4 = [1,2,3,4,5];
const arr5 = [1,2,3,4,5];
const arr6 = [1,2,3,4,5];
const arr7 = [1,2,3,4,5];
const arr8 = [1,2,3,4,5];
const arr9 = [1,2,3,4,5];
const arr10 = [1,2,3,4,5];
const arr11 = [1,2,3,4,5];
const arr12 = [1,2,3,4,5];
const arrAlpha = ['A','B','C','D'];
const App = () => {
return (
<>
<h1>App page</h1>
<Map
alpha = {arrAlpha}
numb={arr}
beta={arr1}
gamma={arr2}
delta={arr3}
sigma={arr4}
theta={arr5}
sin={arr6}
cos={arr7}
sec={arr8}
cosec={arr9}
tan={arr10}
cot={arr11}
tri={arr12}
/>
</>
)
}
export default App
Map.js Component
const Map = (props) => {
const one = props.alpha;
let itemOne = one.map((items)=><li>{items}</li>)
const two = props.numb;
let itemTwo = two.map((itemst)=><li>{itemst}</li>)
const three = props.beta;
let itemThree = three.map((beta)=><li>{beta}</li>)
const four = props.gamma;
let itemfour = four.map((gamma)=><li>{gamma}</li>)
const five = props.delta;
let itemfive = five.map((delta)=><li>{delta}</li>)
const six = props.sigma;
let itemSix = six.map((sigma)=><li>{sigma}</li>)
const seven = props.theta;
let itemSeven = seven.map((theta)=><li>{theta}</li>)
const eight = props.sin;
let itemEight = eight.map((sin)=><li>{sin}</li>)
const nine = props.cos;
let itemNine = nine.map((cos)=><li>{cos}</li>)
const ten = props.sec;
let itemTen = ten.map((sec)=><li>{sec}</li>)
const eleven = props.cosec;
let itemEleven = eleven.map((cosec)=><li>{cosec}</li>)
const twelve = props.tan;
let itemTwelve = twelve.map((tan)=><li>{tan}</li>)
return (
<>
<h1>React Map Items</h1>
<ul>
<li>{itemOne}</li>
<li>{itemTwo}</li>
<li>{itemThree}</li>
<li>{itemfour}</li>
<li>{itemfive}</li>
<li>{itemSix}</li>
<li>{itemSeven}</li>
<li>{itemEight}</li>
<li>{itemNine}</li>
<li>{itemTen}</li>
<li>{itemEleven}</li>
<li>{itemTwelve}</li>
</ul>
</>
)
}
export default Map
({ create, update, categories, ... }) => { return ( <div className="job-container"> <JobForm ... /> </div> )}
. This specific example could be written as(props) => <div className="job-container"><JobForm {...props} /></div>
. See medium.com/@dan_abramov/… – Steffin