Skip to content

Instantly share code, notes, and snippets.

View sebastiandedeyne's full-sized avatar

Sebastian De Deyne sebastiandedeyne

View GitHub Profile
import React from 'react';
type Props = {
data: Array<[number, string]>;
};
export default function LineChart({ data }: Props) {
if (!data.length) {
return null;
}
document.addEventListener('alpine:init', () => {
Alpine.store('breakpoint', {
listeners: {},
init() {
const breakpoints = {
sm: 640,
md: 768,
lg: 1024,
xl: 1280,