DEV Community

Discussion on: Passing props using the spread operator in React

Collapse
starpebble profile image
starpebble

Keep going! Don't give up on inlining.

const ExampleComponentName = ({hStyle, pStyle, name}) => {
  // code
}

Does this look like what you want?