Is there any way to make a post-render check for the links in a react component, check them with a callback, and render them as broken if the check in the callback fails? I have found broken-link-checker
but I do not think that this library fits to what I am trying to do
Asked
Active
Viewed 856 times
1

chatzich
- 1,083
- 2
- 11
- 26
-
Why is the library not fitting? Its description matches your question. – JulienD May 19 '20 at 09:14
-
@JulienD it just detects the links and informs which of them are broken I want to somehow parse the react's component DOM and check the `href` manually and change the `` element as red – chatzich May 19 '20 at 09:19
-
3It has a callback that executes when it finds a broken link. – JulienD May 19 '20 at 09:51