[Solved] Warning: Received `true` for a non-boolean attribute `name`. If you want to write it to the DOM, pass a string instead: name=”true” or name={value.toString()} in reactJs
React is treating it as a prop with Boolean type. So, that's the reason I was getting the below error.