-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
27 lines (23 loc) · 729 Bytes
/
index.ts
File metadata and controls
27 lines (23 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// src/lib/Zeroact/index.ts
import { createElement } from './core/createElement';
import { render } from './core/render';
import { useState } from './hooks/useState';
import { useRef } from './hooks/useRef';
import { useEffect } from './hooks/useEffect';
import { useCallback } from './hooks/useCallback';
import { createContext, useContext } from './hooks/useContext';
export { createElement, render, useState, useRef, useEffect, useCallback, createContext, useContext };
export * from './types';
const Fragment = (props: { children: any }) => props.children;
const Zeroact = {
createElement,
render,
useState,
useEffect,
useRef,
Fragment,
useCallback,
createContext,
useContext,
};
export default Zeroact;