I was facing a similar issue. It turns out that, in my case, was highlighthjs removing comments from the generated dom.
For text, React 15 is adding comment with the reactid instead of a span tag, as in:
<!-- react-text: 248--> Another Search <!--/react-test-->
Can you try something like this?
<Link className="dark button" to="/"><span>Another Search</span></Link>
This will force the generated DOM to include the span with the proper data-reactid
attribute.
I would file an issue with react-router, maybe they can do that internally so you would not have to bother about it. But there are challenges with that as the Link child could be basically anything.
Related Posts:
- How to use Redirect in the new react-router-dom of Reactjs
- You should not use Route or withRouter() outside a Router when using react-router 4 and styled-component in react
- React-Router only one child
- How to refresh a Page using react-route Link
- How to implement authenticated routes in React Router 4?
- onEnter not called in React-Router
- react router v^4.0.0 Uncaught TypeError: Cannot read property ‘location’ of undefined
- React-Router : What is the purpose of IndexRoute?
- React router not showing browser history
- React, Uncaught ReferenceError: ReactDOM is not defined
- Getting “Cannot call a class as a function” in my React Project
- Invariant Violation: Objects are not valid as a React child
- Invariant Violation: Objects are not valid as a React child
- “SyntaxError: Unexpected token < in JSON at position 0"
- What is Virtual DOM?
- React – uncaught TypeError: Cannot read property ‘setState’ of undefined
- Understanding unique keys for array children in React.js
- How to do a redirect to another route with react-router?
- Jest spy on functionality
- Difference between npx and npm?
- Reactjs – Form input validation
- TypeScript React.FC
confusion - Loop inside React JSX
- Can’t resolve module (not found) in React.js
- How to implement navbar using react
- Loop inside React JSX
- Understanding React-Redux and mapStateToProps()
- how to render a react component using ReactDOM Render
- React this.setState is not a function
- Console logging for react?
- Parse Error: Adjacent JSX elements must be wrapped in an enclosing tag
- ‘react-scripts’ is not recognized as an internal or external command
- After $npm install, Getting Error: Cannot find module ‘../lib/utils/unsupported.js’
- React Native: this.setState is not a function
- React: trigger onChange if input value is changing by state?
- In reactJS, how to copy text to clipboard?
- SyntaxError: Adjacent JSX elements must be wrapped in an enclosing tag
- What does the className attribute mean in JSX?
- What is prevState in ReactJS? [duplicate]
- React with ES7: Uncaught TypeError: Cannot read property ‘state’ of undefined
- Setting a backgroundImage With React Inline Styles
- React – TypeError: Cannot read property ‘props’ of undefined
- What is the difference between state and props in React?
- How to pass props to {this.props.children}
- OnChange event using React JS for drop down
- ESLint Parsing error: Unexpected token
- React Context vs React Redux, when should I use each one?
- Setting onSubmit in React.js
- How to import image (.svg, .png ) in a React Component
- Uncaught TypeError: Cannot read property ‘props’ of null
- ReactJS: setTimeout() not working?
- React Uncaught Error: Target container is not a DOM element [duplicate]
- React Error: Target Container is not a DOM Element
- React Js: Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0
- Console is throwing Unterminated JSX contents error
- How to scroll to an element?
- How to handle the `onKeyPress` event in ReactJS?
- setInterval in a React app
- Cannot read property ‘bind’ of undefined. React.js
- How do you Hover in ReactJS? – onMouseLeave not registered during fast hover over
- Failed to compile. Module not found: Can’t resolve ‘react-router-dom’
- ReactJS: setTimeout() not working?
- What does “export default” do in JSX?
- Uncaught Invariant Violation: Too many re-renders. React limits the number of renders to prevent an infinite loop
- Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Transition which is inside StrictMode
- React.js – Can’t read property of undefined
- module.exports “Module is not defined”
- how to download file in react js
- Trying to use fetch and pass in mode: no-cors
- React’s setState method with prevState argument
- Pass react component as props
- Uncaught TypeError: Cannot read property ‘call’ of undefined at __webpack_require__
- Objects are not valid as a React child. If you meant to render a collection of children, use an array instead
- How to clear react-native cache?
- Async/await in componentDidMount to load in correct order
- Why use Redux over Facebook Flux?
- Can’t perform a React state update on an unmounted component
- how to use react require syntax?
- onClick not working React js
- This.props.dispatch not a function – React-Redux
- How to add a keyboard listener to my onClick handler?
- How to add a keyboard listener to my onClick handler?
- e.target.value on an input field ReactJs, how does it work?
- Uncaught Invariant Violation: Rendered more hooks than during the previous render
- command not found: jest
- ReactJS – .JS vs .JSX
- ReactJS: Maximum update depth exceeded error
- How to allow CORS in react.js?
- Invariant Violation: _registerComponent(…): Target container is not a DOM element
- Uncaught ReferenceError: React is not defined
- What do these three dots in React do?
- Expected ‘this’ to be used by class method
- How to disable button in React.js
- What does “export default” do in JSX?
- Update style of a component onScroll in React.js
- where is create-react-app webpack config and files?
- Correct modification of state arrays in React.js
- JSX not allowed in files with extension ‘ .js’ with eslint-config-airbnb
- “React.Children.only expected to receive a single React element child” error when putting
and in a - Await is a reserved word error inside async function