Skip to content

Instantly share code, notes, and snippets.

View talatkuyuk's full-sized avatar

Talat Küyük talatkuyuk

View GitHub Profile
@talatkuyuk
talatkuyuk / .tsx
Last active November 11, 2022 18:45
React JSON Viewer (Typescript)
import { useRef } from "react";
import styled from "styled-components";
type Props = {
json: Object;
title?: string;
};
const Container = styled.div`
width: 100%;
@talatkuyuk
talatkuyuk / Bar.mjs
Created February 11, 2024 23:04
Simple transpiled react component
import React from "react";
const Bar = () => {
return React.createElement(
"div",
{
className: "bar-content",
style: { color: "red", marginTop: "1rem" },
},
"Hi from Bar component"