atrilabs-engine
atrilabs-engine copied to clipboard
Add featuers lost due to iframe
Due to recent improvement where we encapsulated the Canvas into an iframe , some of the capabilities related to component development that we had before this iframe are lost. I am listing down the capabilities we don’t have temporarily and their workaround:
- We cannot use stylesheet like CSS etc. anymore for component development. The alternative is to write inline CSS directly in JSX. If you want to write CSS with pseudo classes, you can use the style tag in the JSX directly.
- You will not be able to import SVG or images. You can create a React component and copy the svg in it and then you can use that React component.