rework/lightweight #12
@ -52,7 +52,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.token.module,
|
.token.module,
|
||||||
.token.attr-name,
|
|
||||||
.token.keyword,
|
.token.keyword,
|
||||||
.token.rule,
|
.token.rule,
|
||||||
.token.pseudo-class,
|
.token.pseudo-class,
|
||||||
@ -67,6 +66,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.token.generic,
|
.token.generic,
|
||||||
|
.token.attr-name,
|
||||||
|
.token.boolean,
|
||||||
|
.token.number,
|
||||||
.token.class-name {
|
.token.class-name {
|
||||||
color: #C18401;
|
color: #C18401;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,12 +8,12 @@ const reactCreateElementSnippets = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "React sans JSX",
|
name: "React sans JSX",
|
||||||
codeLanguage: "js",
|
codeLanguage: "jsx",
|
||||||
code: `React.createElement("button", { className: "button" }, "Clique moi !");`,
|
code: `React.createElement("button", { className: "button" }, "Clique moi !");`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "React avec JSX",
|
name: "React avec JSX",
|
||||||
codeLanguage: "tsx",
|
codeLanguage: "jsx",
|
||||||
code: `<button className="button">Clique moi !</button>`,
|
code: `<button className="button">Clique moi !</button>`,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
@ -18,9 +18,8 @@ const reactUseButtonComponentSnippets = [
|
|||||||
name: "Utilisation du composant Button",
|
name: "Utilisation du composant Button",
|
||||||
codeLanguage: "jsx",
|
codeLanguage: "jsx",
|
||||||
withLineNumbers: true,
|
withLineNumbers: true,
|
||||||
code: `import React from "react";
|
code: `import { Button } from "./Button";
|
||||||
|
import React from "react";
|
||||||
import { Button } from "./Button";
|
|
||||||
|
|
||||||
export function App() {
|
export function App() {
|
||||||
return (
|
return (
|
||||||
@ -66,9 +65,8 @@ const reactUseButtonComponentPropsSnippets = [
|
|||||||
name: "Ajout de la prop `onClick`",
|
name: "Ajout de la prop `onClick`",
|
||||||
codeLanguage: "jsx",
|
codeLanguage: "jsx",
|
||||||
withLineNumbers: true,
|
withLineNumbers: true,
|
||||||
code: `import React from "react";
|
code: `import { Button } from "./Button";
|
||||||
|
import React from "react";
|
||||||
import { Button } from "./Button";
|
|
||||||
|
|
||||||
export function App() {
|
export function App() {
|
||||||
function handleClick() {
|
function handleClick() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user