Comments (2)
whenever dealing with external services/api, we found that creating a component to align with that service on the type of data shared, providing a class and even serialize/de-serialize functions is a good architecture pattern. that component may also hold mock-data, so any consuming frontend that wants to run tests or even render without data-fetching gets some mocks.
i made a webinar on the topic - https://www.youtube.com/watch?v=tUGB5UKIOrY
from bit.
@itaymendel this pattern makes sense, thank you for the clarification.
from bit.
Related Issues (20)
- I can't run express server with sqlite3 HOT 2
- Best Practice For Importing Another Bit Component to Avoid Ripple CI Failure HOT 5
- ReferenceError: jest is not defined HOT 1
- Export Error HOT 1
- Bit Installation error:- reason: self signed certificate in certificate chain HOT 3
- [WORKSPACE] How to move my package.json/ lock deps to bit workspace ? HOT 1
- [WORKSPACE] Monorepo packages/apps dependencies managements HOT 3
- [WORKSPACE] Bit status how to not be aware of some import s HOT 4
- Very slow to install bit HOT 3
- Not possible to add remote bit scope HOT 2
- [WORKSPACE] How can we install dependencies needed only HOT 8
- New workspace env not found error HOT 2
- Multiple issues when trying to tag many components HOT 2
- next/image error - React.jsx: type is invalid -- expected a string (for built-in components) or a class/function but got: object HOT 1
- Inconsistent typescript rules between custom environment compiler and build task HOT 8
- Custom Vite config for Vue App HOT 1
- Where to download file bin to install ? HOT 3
- Cannot find module '../node_modules/@teambit/bit/dist/app' HOT 4
- Components marked as removed still present in remote workspace
- Deployed self hosted Docker, but access failed. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bit.