I am trying to write a JavaScript function in react JS to interact with Google firebase, but it does not appear to be working the way I want it to.
const watchlistChecker = () => {
// [login to view URL](stock);
[login to view URL]((watchlistItem) => {
if ([login to view URL] === [login to view URL]) {
return (
<button className="watchlist_btn" onClick={deleteWatchlistItemHandler}>
Remove from Watchlist
</button>
);
}
});
return (
<button className="watchlist_btn" onClick={postDataHandler}>
Add to Watchlist
</button>
);
}
The objective to display the proper button depending if the item is in the database.
Hello I will create web pages, update web pages and update the code, and you will get a responsive website together with all phones, and you will get a site in many designs, colors, and layout as quickly as possible thank you..