Replies: 2 comments 3 replies
-
Thank you for the suggestion! This isn't something I'd consider at this stage, but it might be a useful plugin idea, once React Preview has a plugin API :) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ok, no problem. The MSW integration works for me as below config. It works out of the box. // _reactpreview__/Wrapper.tsx
import React from 'react';
import { worker } from '../mocks/browser';
import '../styles/index.css';
worker.start();
export const Wrapper: React.FC = ({ children }) => <>{children}</>;
export default {
Wrapper,
}; |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What
Why
How
Let me know if you have any feedback on this. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions