Function: highlightSubstring()
highlightSubstring(
text
,substring
,highlightProps
):Element
Renders a text span with all occurrences of the specified sub-string highlighted.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
|
|
| source text to display |
|
|
| sub-string to highlight each instance of inside the |
|
|
| props to pass to each |
Returns
Element