MCPcopy Create free account
hub / github.com/codemistic/Web-Development / sendPost

Function sendPost

linkedin-clone/src/Feed.js:35–47  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

33 }, [])
34
35 const sendPost = (e) => {
36 e.preventDefault();
37
38 db.collection('posts').add({
39 name: 'Himanshu Sharma',
40 description: 'this is a test',
41 message: input,
42 photoUrl: "",
43 timestamp: firebase.firestore.FieldValue.serverTimestamp(),
44 })
45
46 setInput('');
47 };
48
49 return (
50 <div className='feed'>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected