Comments (2)
Hey @ffleandro!
The <Columns />
, <Column />
, and <Image />
components you mentioned are Builder specific react components that we have defined within the editor. These should only be included in the output if you're planning on letting Builder render the content as jsx-lite. These shouldn't have been included in the compiler output by default, so thanks for point that out 😄 !
Once the linked PR is merged, in version 1 and greater of @jsx-lite/cli this will no longer be the behavior and the custom elements will be replaced with standard HTML markup. To opt back in to this behavior you can use the new --builder-components
flag.
For your components styles I would suggest using the --styles=styled-jsx
flag, which will emit a <style jsx> { ... }</style>
block which is supported by next.js
This flag is poorly documented but only works for react, you can see the options available to it here: https://github.com/Dkendal/jsx-lite/blob/5af5e5b6c409e20d96f1fac7ca1f63594f46d231/packages/core/src/generators/react.ts#L39
Hopefully that helps, let me know if anything was unclear!
from mitosis.
Awesome, thank you very much.
Will let you know how it goes once I've tested this PR.
from mitosis.
Related Issues (20)
- How to test a mitosis component ? HOT 1
- Lackluster developer docs HOT 1
- critical/high Vulnerabilities
- support `children` as render prop HOT 1
- React named slots getting prefixed with the word 'Slot'
- Support for custom components in mitosis compiler HOT 11
- "Could not replace node." added in vue-component HOT 1
- Treat module scrope correctly for Svelte and Vue
- cli ignore parts of config settings
- Angular [attr.disabled]
- SolidJS: mitosis compiles the attribute "for" to "htmlFor" HOT 2
- Support for custom generators / targets HOT 2
- Sveltosis doesn't work on Fiddle HOT 1
- The context.Provider in SolidJS wraps the children in Fragments HOT 3
- Vue2 `For` component not generating `template` HOT 2
- Bug: slots with data HOT 21
- Slots: Angular and Vue behave diffently
- bug: incorrect react native code generation HOT 3
- Angular: useObjectWrapper gets generated with incorrect input for object HOT 3
- Svelteosis not working on https://mitosis.builder.io/ 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 mitosis.