Home Reference Source
public class | source

Diff

Extends:

react~React.Component → Diff

Diff accepts two HTML strings and displays a marked up diff of the two

Constructor Summary

Public Constructor
public

constructor(props: *)

Member Summary

Public Members
public
public

state: *

Method Summary

Public Methods
public
public
public

Used to dangerously set the html of the differ.

public

render(): *

Public Constructors

public constructor(props: *) source

Params:

NameTypeAttributeDescription
props *

Public Members

public displayName: string source

public state: * source

Public Methods

public componentWillMount() source

public componentWillReceiveProps(nextProps: *) source

Params:

NameTypeAttributeDescription
nextProps *

public getDiff(): object source

Used to dangerously set the html of the differ. You can also use this method to get a copy of the html diff.

Return:

object

object with '__html' key containing the diff

See:

public render(): * source

Return:

*