New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@freact/core

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@freact/core

Minimal React re-implementation in 3kB

latest
npmnpm
Version
0.0.18
Version published
Maintainers
1
Created
Source

Freact

Freact is a VDOM-based component library that aims to mimic the API of React. Create a new Freact project by running one of these commands:

npm init @freact    # npm
yarn create @freact    # yarn
pnpm create @freact    # pnpm

Supported React features:

  • Function Components
  • Fragment
  • createContext
  • memo
  • Hooks
    • useState
    • useEffect
    • useRef
    • useReducer
    • useMemo
    • useCallback
    • useContext

Minimal code example for Freact:

import { createRoot } from 'freact';

createRoot('#app').render(
  <div>this is a Freact app</div>
);

FAQs

Package last updated on 04 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts