Dewen Li

A site about Dewen

BodilessJS - Create a designable clean component

_2021-03-06 Dewen Liweb-development

Create a designable clean component

Complete description of BodilessJS design system can be found at: Bodiless Design System.

Let’s start with a Layout.tsx file and some basic import

import React, { Fragment, ComponentType, FC } from 'react';

1. Define components types

export type LayoutComponents = {
  Wrapper: ComponentType<>

}