Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

284
Views
Componente funcional React JSDoc: obtengo la clave "interna" cuando documento un componente

Al generar el JSDoc de este componente, obtengo la clave "interna" junto a la definición de mi componente. ¿Qué significa? ¿Como puedo quitarlo?

Métodos

(interno) ActivityItemContainer() → {React.ReactElement}

Este es mi código:

 /** * Properties received by the ActivityItemContainer component * * @typedef {object} ActivityItemContainerProps * @property {object} props - The ActivityItemContainer properties * @property {React.ReactElement} [props.children] - The ActivityItemContainer's children * @property {string} [props.icon] - The ActivityItemContainer's icon * @property {string} props.date - The ActivityItemContainer's date * @property {string} [props.backgroundColor] - The ActivityItemContainer's backgroundColor */ /** * Component for containing the user activity * with some design tweaks. * * @public * @type {React.FC<ActivityItemContainerProps>} * @returns {React.ReactElement} A fancy container * @example * const icon = { * name: "ios-flash", * type: "ionicon", * size: 25, * color: "#FF8100" * }; * * const date = "3 hours ago"; * * return ( * <ActivityItemContainer icon={icon} date={date}> * ... * </ActivityItemContainer> * ); * @version 1.0.0 * @since 1.0.0 */ function ActivityItemContainer({ icon, date, backgroundColor, children, }) { ... }

Además, la siguiente función me está dando el mismo resultado:

 /** * @private * @function areActivityItemContainerPropsEqual * @param {object} prevProps Previous component's props * @param {object} nextProps Next component's props * @returns {boolean} Returns true if the component's date remains intact between renders. Otherwise, it returns false. * @version 1.0.0 * @since 1.0.0 */ function areActivityItemContainerPropsEqual(prevProps, nextProps) { return prevProps.date === nextProps.date; }

(privado, interior) areActivityItemContainerPropsEqual(prevProps, nextProps) → {booleano}

Nota: Este es el encabezado de mi archivo:

 /** * @author ... * @file Container for activity items. * @copyright ... * @license MIT * @module components/Activity * @exports {React.FC<ActivityItemContainerProps>} ActivityItemContainer */
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!