VScode extension for React Developers!
This extension enables developers to live preview react components while developing react projects.
You can add custom props from the control panel and preview your updated components
- Open Visual Studio Code
- From your working editor press
ctrl + p
/β + p
to quick start - Start editing your react component from the text editor and add props from the control panel
- When ever you finished editing and wants to check your preview press
ctrl + s
/β + s
OR
- Open Visual Studio Code
- From your working editor press
ctrl + p
/β + p
to open command Palette and type "React Component Preview: preview start" - Start editing your react component from the text editor and add props from the control panel
-
- When ever you finished editing and wants to check your preview press
ctrl + s
/β + s
- When ever you finished editing and wants to check your preview press
-
previewConfig.json
file will be automatically added to your workspace. We strongly recommend you not to modify this file unless it is necessary. -
Current Extension features only supports
.js
,.jsx
files (does not support.tsx
at the moment) -
Current Extension only works on Mac OS
-
component should be exported with
export default <Component>
const Button = () => {
return (
<button>
ClickMe
</button>
);
};
// export default
export default Button;
OR
// export default
export default const Button = () => {
return (
<button>
ClickMe
</button>
);
};
.tsx
support- Preview error console
Something missing? Found a bug? - Create a pull request or an issue. Github
This software is released under MIT License
Enjoy! π