import StructuredPerson from 'peritext/components/StructuredDataComponents/StructuredPerson.js'StructuredPerson
Extends:
react~React.Component → StructuredPerson
dumb component for rendering the structured representation of a person
Method Summary
| Public Methods | ||
| public |
render(): ReactElement render |
|
| public |
transformValues(author: Object, pattern: string): Object transformValues modifies firstName and lastName according to pattern indications |
|
| public |
updateHtml(): ReactElement updateHtml : transform pattern+person props into a react element |
|
Public Methods
public transformValues(author: Object, pattern: string): Object source
transformValues modifies firstName and lastName according to pattern indications
public updateHtml(): ReactElement source
updateHtml : transform pattern+person props into a react element
Return:
| ReactElement | markup |