This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Variables | |
| var a = 1; | |
| let b = 2; | |
| const c = 3; | |
| const pi = 3.17; | |
| console.log(a, b, c, pi); | |
| // Operations | |
| let sum = a + b; | |
| let sub = a - b; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { useEffect, useState } from 'react'; | |
| import { useDispatch, useSelector } from 'react-redux'; | |
| import { getComments, setSelectedRequest } from '../redux/commentsSlice'; | |
| const HandleData = () => { | |
| const dispatch = useDispatch(); | |
| const { comments, processing, httpError } = useSelector(state => state.comments); | |
| useEffect(() => { | |
| dispatch(getComments()); | |
| }, []); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Document</title> | |
| <link rel="stylesheet" href="main.css"> | |
| </head> | |
| <body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useEffect, useState } from 'react' | |
| const CommentsCard = ({ comment }) => { | |
| return ( | |
| <div> | |
| <blockquote> *** "{comment.comment}"</blockquote> | |
| {/* <button className='btn btn-success btn-sm'>Like</button> */} | |
| </div> | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, {useState, useEffect} from 'react'; | |
| import { | |
| View, | |
| Alert, | |
| ScrollView, | |
| TextInput, | |
| TouchableOpacity, | |
| ActivityIndicator, | |
| } from 'react-native'; | |
| import auth from '@react-native-firebase/auth'; |
OlderNewer