How to use react-router-dom in React + Electron? - reactjs

I have problem to use react-router-dom for build desktop app with React JS and Electron. I want my App can move like single page application as my website that build with React. But after build React and Electron, the react-router-dom cant display, even i got white screen
pls help me to fix it
I hope:
i want to know how to use react-router-dom for build electron app

Related

How to fix layout shifts problem when using react native component in react web (SSR)?

Currently we are working on monorepo architecture, in which we have three projects,
1- PWA (react SSR) for web
2- APP (react native ) for Android/Ios app
3- Shared ( react native) to share code between Web and App
In PWA, we have MiniCssExtractPlugin to separate CSS from the Webpack bundle for better performance, but the react-native-web plugin converts the react-native stylesheet into the CSS-in-js format. Due to this, its style will be applied later on the web. We are facing a component layout shift in our web project. If you guys have any solution regarding this issue, please help me out.
For more details, please comment.

React app my components are not popping up as a jsx

screenshot
When I create a React app, before my components used to turn like a turquoise green. Now it doesnt also im seeing so many red as well as errors. Im following a React portfolio tutorial step by step, but not sure if my app is working properly. Maybe I need to fix it with an npm package?
Try to install react-router-dom
And restart your vscode
Then Run your app again, the Router tags should be Green the same like components

https://reactnavigation.org/ is only for React-native apps?

Can I implement https://reactnavigation.org/ contents on my React WebApps? There is no where written on the website that I can use with React also.
No. You can use reactnavigation only in react-native apps. But if you are using Expo you can generate web-build from your react-native app which have implemented react-navigation and if you are using react-native-cli then you can use react-native-web.
else for building ReactJS Web Apps, you should use react-router-dom instead of react-navigation.

React Native PWA with react-native-view-pager

I'm developing a React Native application with Expo, after a few weeks of development I wanted to check my app on the browser by running: expo start --web
The Expo project is starting without any issues, however when I navigate to the local address where the app is being served I get a nasty error:
This is my first React Native app and I'm not sure if the react-native-pager-view simply cannot be run in the browser or I just need to add some webpack configuration for it to succeed.
Any help would be much appreciated.
React native is not meant to work as PWA.
PWA is just a web application that depends on chrome features to look and feel as mobile app. But they are not such smoothly experience as with a react-native or android/ios app.
If you are trying to test this on the web, be sure that you are following the steps in the official docs of react native. And check the example app from react-native-pager-view that works, you could start from there

How to create a React app without webpack and Create-react-app

without using webpack and create-react-app how to create a React app
i would like to use following in my react application
1.redux
2.react routing
You can simply copy the cdn and implement your component to the project. That is if you have already a web page and you want to implement a few components with reactJs. Check this page has your answer.
https://reactjs.org/docs/add-react-to-a-website.html

Resources