Skip to content

Instantly share code, notes, and snippets.

View oyedeletemitope's full-sized avatar

Oyedele Temitope Taiwo oyedeletemitope

View GitHub Profile
@oyedeletemitope
oyedeletemitope / app-1.jsx
Created December 5, 2023 16:55
gist for solid.js props
// App.jsx
//custom props
import logo from "./logo.svg";
import styles from "./App.module.css";
import { createSignal } from "solid-js";
import Child from "./Child";
function App() {
// Create a reactive signal in the parent component
const [parentMessage, setParentMessage] = createSignal("Hello from Parent!");