Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

176
Views
How can I convert Web 8 version to Web 9 in Firebased
import firebase from 'firebase/compat/app';
import React , {useState} from 'react'
import { EmojiIcon, GIFIcon, ImageIcon, PollIcon, ScheduleIcon } from '../icons/Icon'
import db from '../firebase';
import { collection } from 'firebase/firestore';


const TweetBox = () => {

const [content, setContent] = useState('');

const sendTweet = () => {
if (content !== '') {
  collection(db,'feed').add({
    displayName: 'Talha',
    userName: '@talhayavcin8',
    content,
    timestamp: firebase.firestore.FieldValue.serverTimestamp(),
    avatar: 'https://pbs.twimg.com/profile_images/1471200875414790152/P4ESp6xE_400x400.jpg',
  });

  setContent('');
 }
};

I have a problem with Firebase in my Twitter clone app. How can I convert this to web 9 version?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!