Exclude some components while building reactjs app - reactjs

I have ReactJS webapp ready for building.
Now I want to build this app but do not need some components at present but will need them in future. So, ho could I exclude the unrequired components while building the application?

Related

How to inject style theme into react apps based on subdomain

I'm building a series of personalized react apps that communicate to my back-end api.
I'm iterating on my api and adding features, and I implement those on the front end of each new app i make, but my problem is that the old react apps don't include the new functionality or components.
Is there a way to separate the styling from the hooks and components of the react app such that any features i add would automatically be overlayed with the appropriate styling based on something like the subdomain of the app?

How to integrate already SPA project to laravel Inertia?

I've downloaded React dashboard app and I want to use it inside my laravel inertia application.
I got confused how to merge their files together.
React components should be inside resources/js/Pages in laravel Inertia.
I got confused how to merge react app with laravel inertia app
Here are images of files for each of them.

How to combine react and react-native projects?

I have created a website with react.js, Material-UI, and node.js. Now I want to create a mobile app for that website with React-native. I have used redux,react-redux, and saga on the website. I am new to react-native.
I want to know, Is it possible to create a mobile app and website in a single project structure, If possible then how? Because I don't want to repeat the same state and API calling procedure two times.
React.js uses HTML to render pages and React native doesn't support HTML so you can't use direct HTML.
You can buy react native theme that suits your need and you can re-use services and api call logic from react code.
Theme: https://codecanyon.net/search/react%20native
You can't just use your whole code into the react native app.
First and foremost, you must adhere to the react native architecture before creating your UI with react native components.
https://reactnative.dev/docs/getting-started
The most of the assistance will be found here.
There is also the option of creating a new react-native project and using webview to show your entire website there.
https://github.com/react-native-webview/react-native-webview

NextJS load react component at runtime

I want to create a react based theme engine for NextJS, in summary, the user can upload a set of .js files that contains React components, and I want to inject them inside my app on some specific parts.
The question is: It is possible to compile react component and inject them in my app after build and at runtime?
I also open to suggestions, still looking for an alternative of this.

React js website inside a react native app

I want to build a website which has 3-4 pages. In later stage I want to build an app for the same. i.e I want to open the website in react native app. I want to do this to avoid app updates.
I will add/remove components in website so that it will reflect in the app without any update.
what is the best approach for this?
Any code samples or blogs ?

Resources