Render out components properly
I can export everything to the scope just fine and am using their React build environment with annotations described in the docs, the builds are passing, and it seems to be pulling in styled-components dependency correctly, but when viewing the file it hangs on rendering...
scope @ https://bitsrc.io/sixsigma/test/cells/button
_styled-components_ are known not to bundle correctly, and will be fixed in the near release.
You will be able to use _styled_ from the web editor directly and play with the styling live.
It is going to be awesome
out of curiosity, bundling on which end - the styled-components library or users of the library that are creating custom components using styled-components?
in any case, very much looking forward to it. the idea is to create a custom ui library using styled-components and replace storybook with bitsrc to document/share components across the organisation.
You could read about it in more detail here - https://blog.bitsrc.io/introducing-the-live-react-component-playground-d8c281352ee7
Currently version we include _styled-components_ inside the component bundle itself.
In the next release, you will have access to ES6 imports.
This means you would be able to import a component and style it live.
In addition we blacklisted _styled-components_ from being added to the bundle, and fetch it in a separate bundle.
thanks for the update, will be looking forward to the next release then.
any update on this?
Do you have an approximate date for the next release? Thanks in advance
is it the reason - my component is not rendering - https://bitsrc.io/rivigo/ui/components/avatar
any fix/hack?
Hello,
Any update on that? Do you already know a date for the release where this support is included?
A solution is coming soon :)
Hi @viiralt @CyrusZei @alegadpen-iu @nsisodiya @diemate
The new version is up and running.
Everything with styled component should work fine now on the rendering.
@JoshK2 @guysaar223 Please add some real examples as reference.
I'm keeping this open for a few more days just to see that you don't have any other issues with this.
@viiralt @CyrusZei @alegadpen-iu @nsisodiya @diemate
https://bitsrc.io/guyssar/styled-components/button?example=5c596dc8482c5b00137ed5db
Most helpful comment
Do you have an approximate date for the next release? Thanks in advance