ReactJS
ReactJS, or simply React, is a JavaScript library for building user interfaces. It was developed by Facebook and is maintained by Facebook and a community of individual developers and companies. React is commonly used for building single-page applications where the content is dynamically updated without needing to reload the entire page.
Structure
Directorytest
- main.test.ts
- package.json
api
in this case we get api file yo path your api data and return
global
state in this floder we need to use global state file with zustand style set variable value of css font and many thing if you want it rendered on every page
page
in page floder you can and .jsx
file and write ReactJS code in it to make pags of your website
type
in type floder you can set your type interface and export or declare module,value with .d.ts
file
router
in router floder you can import your page with lazy-loading
put your loading page in <Suspense fallback={...}>
and set path with your page by react-router-dom
components
in components floder you can create .jsx
file and export your components like Header,Footer ,…
functions
In functions floder you can
test
in test floder for unit testing project to run UI testing run npm run test
Migration
vitest
learn more Vitest to start your testing UI run
zustand
in solidJS you can use Global state in your project like useContext
by using Zustand to make you easy to manage your state learn more about zustand
LICENCE BY DOSE FROM ANOTHER PLANET