I have this code that contain props it’s took 3 line for only props I have assignment to change the props into a function to simplified them, so I can import them as a function and only take 1 line for props Answer You can use an object notation to pass the props where key and value are the same