I've encountered a problem when trying to find an object in an array of objects(which is also a state) using the find() method. Interestingly when using the same code except when the array of objects is assigned to a constant variable (meaning that it is n...
I am frustrated because I'm a very Junior in React so I don't know if I made something wrong or not, because I really don't understand why, but part of the CSS don't apply to my code and I feel it's not normal...
This is my JS code:
import React from 'reac...
I want to construct FirebaseAuthentication with Twitter using Expo.
But an error that the request token is invalid occurred.
Running the server-side program with my PC and Expo(client) side program with Expo app on my iPhone.
(* is each token and so on)
Se...
I'm having some troubles trying to make this modal work. I have a flatlist with a lot of data inside and each item should be clickable to open a modal. Right now when im clicking the item in the flatlist nothing happens. What am I missing?
...................
Backend
I am trying make a JWT cookie based authentication work. I am currently performing the following cookie setting as part of a login route in the backend API.
res.cookie('authCookie', token, {maxAge: 900000, httpOnly: true});
Later when I am auth(in...
I have a weird problem with CSS files and importing them. I have a bunch of .jsx files with my react components and each of them have individual .css files for styling. The problem is that in some cases when I do this in some ex_file.jsx
import './ex_file....
I am using ReactSearchBox component like below .How do place them vertically side by side and reduce the length of search box too
function SearchBarComponent() {
return (
<div >
<ReactSearchBox
placeholder="P...
I want to develop a responsive sidebar in React. I took https://startbootstrap.com/template/simple-sidebar template as an example.I can use it in block1:
区块1:
function App() {
useEffect(() => {
$("#menu-toggle").click(function (e) {
e.prevent...
I am trying to send a file using React to a Laravel API
On the React side, I am first getting the user to add a file using React Dropzone
I get the file from the React Dropzone onDrop method:
handleUpload = async files => {
const file = files[0]
}
I the...
I have A Component Called ParamsPicker.tsx which render multiple input components and Hold's their state
import React from 'react';
more import...
export enum Assets {
First,
Second
}
export interface IParameters {
id: string
startDate: s...