Hey so I want to make a simple browser extension and thats my App.tsx:
import { useState } from 'react'
import './App.css'
import * as CryptoJS from 'crypto-js'
function HashString(input: string): string
{
const hash = CryptoJS.SHA256(input).toString(CryptoJS.enc.Hex);
return hash;
}
function App() {
const [count, setCount] = useState(0)
return (
<>
<h1>MessengerEncryptor</h1>
<div className="card">
<button onClick={() => setCount((count) => count + 1)}>
count is {count}
</button>
</div>
</>
)
}
export default App
for some reason I'm getting error 'HashString' is declared but its value is never read., why is that a problem?