score:1

Accepted answer

option 1

define the component as a variable and then export it

const mycomp = prop => (...)
export default mycomp

option 2

export the component as a named function

export default function mycomp() {}

Related Query

More Query from same tag