for example, I have multiple interfaces, how to write ah, what the catalog is like, ask for answers
App.js
router.js
|----routes
|----user (/)
|----xxxx
|----components
you can create a folder for each page in the src directory, in which you can put component code and do routing in app.js
you can see that the different branches of the small demo, I wrote are all ant mobile style. address
you can refer to ant design pro
antd/mobile, both of which are in the form of component frames, including commonly used React controls such as button, table, tree, etc. You also refer to antd's package in package.json tightly through antd cli init's project,. So, just like you use bootstrap, what is provided to you is only the basic elements, and you have to use the component heap for what the page looks like in the end. As for how to use each component, it is very complete to look in the api document.
as for directories, React is currently used in conjunction with Redux, so take a look at these two articles:
three specifications of Redux + React application architecture
Previous: Mini Program canvas drawing can customize the font?
Next: In iview, how to configure and encapsulate axios, and how to call it?
to write several mobile pages, you need to use the components provided by ant design mobile to develop. How to use this thing, the document doesn t understand much at first and which of the two ways mentioned above should be used, ah, to find a so...
Why ReactDOM.render () cannot render after the page jumps, and it has no effect Page code after jump import React,{Component}from react ; import ReactDOM from react-dom ; import { Flex, WhiteSpace,Button } from antd-mobile ; import U98 ...
the framework of react-based ant design mobile does not write Chinese text directly in the code, so where is the Chinese text written and how should it be used? ask for advice, one for beginners ...
recently used ant design mobile as a mobile page. I d like to ask about how to click the button to jump to the page to save the state. Novice ...
$( - sharpnav-tabs li ). On ( click ,function () {) $( -sharpnav-tabs li ).removeClass( active ); $(this).addClass( active ); that.currentIndex=$(this).index(); that.initTableData(); }) initTableData:function ...
items written in src in create-react-app are placed in a test folder, which can be dragged directly into routes under src in dva build environment. I dragged it in. The original css file doesn t work. What s going on? ...
recently, I have been working on Mini Program, using the Mini Program development tool, which has preview and remote debugging functions, and a corresponding preview interface on the left side of the tool. But now I want to debug the real phone on my ph...
for example, when I transfer an api successfully, I have two callbacks. When the logic fails, there are also two callbacks. At this time, how to use promise to solve the callback? ...
how can I click on the transfer page to display a load rotation icon, and then render the server to complete the display? ...
problem description if there is no problem in other browsers, the QQ browser will automatically add a _ blank to me. related codes Please paste the code text below (do not replace the code with pictures) this is a screenshot of the page conso...