Home Reference Source Repository
public class | source

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 render(): ReactElement source

render

Return:

ReactElement

markup

public transformValues(author: Object, pattern: string): Object source

transformValues modifies firstName and lastName according to pattern indications

Params:

NameTypeAttributeDescription
author Object

the person representation to transform

pattern string

the pattern to use for transforming person representation

Return:

Object

newAuthor - new author object

public updateHtml(): ReactElement source

updateHtml : transform pattern+person props into a react element

Return:

ReactElement

markup