6
Mitosis Fiddle - compile to common frameworks, import from popular tools
source link: https://mitosis.builder.io/?outputTab=G4VwpkA%3D
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
compile to common frameworks, import from popular tools
Inputs:
Choose template
import { useState } from "@builder.io/mitosis";
export default function MyComponent(props) {
const [name, setName] = useState("Steve");
return (
<div>
<input
css={{
color: "red",
value={name}
onChange={(event) => setName(event.target.value)}
/>
Hello! I can run in React, Vue, Solid, or Liquid!
</div>
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK