skip to Main Content

Javascript – New to React; react-calendar props showing as undefined in separate function but work with anonymous function

import logo from './logo.svg'; import React, { useState } from 'react'; import ReactDOM from 'react-dom/client'; import './index.css'; import reportWebVitals from './reportWebVitals'; import Calendar from 'react-calendar'; import 'react-calendar/dist/Calendar.css'; import './App.css'; function App() { const [date, setDate] = useState(new Date()); return (…

VIEW QUESTION

How to make compatible match between react and react native

I am facing a confusing situation: This is my package.json settings "dependencies": { "@expo/metro-runtime": "~3.1.3", "@expo/vector-icons": "^14.0.0", "@react-navigation/native": "^6.1.17", "@react-navigation/native-stack": "^6.9.26", "@react-navigation/stack": "^6.3.29", "@rneui/themed": "^4.0.0-rc.8", "axios": "^1.6.8", "body-parser": "^1.20.2", "expo": "^51.0.0", "expo-auth-session": "~5.5.2", "expo-clipboard": "~6.0.3", "expo-image-picker": "~14.7.1", "expo-mail-composer": "^13.0.1", "expo-status-bar":…

VIEW QUESTION
Back To Top
Search