Represents the News page component
Members
Array
# static filterDropdown
React state that stores the filter dropdown state
- Default Value:
- useState(false)
Array
# static gridView
React state that stores the view type of the news page
- Default Value:
- useState(true)
Array
# static searchInput
React state that stores the search input value
- Default Value:
- useState("")
Methods
# inner getSelectedView(view) → {JSX.Element}
Function to get the selected view
Parameters:
| Name | Type | Description |
|---|---|---|
view |
String
|
The view type |
JSX.Element
# inner stripHTML(htmlString) → {*}
Function to strip HTML tags from a string
Parameters:
| Name | Type | Description |
|---|---|---|
htmlString |
String
|
The string to strip HTML tags from |
*