fencer

0.0.2 • Public • Published

FENCER

Experimental functional JSX framework.

Highlights:

  • JSX syntax
  • functional side effects handling
  • minimal size

Usage

yarn add fencer

example : under construct!!

import {fencer, portal, jlog} from 'fencer';
import {useFetch, readTextFormat} from 'fencer-fetch';

const SelfDump = ({dump}) => (
  <main>
    <h1>self dump :: fencer</h1>
    <hr/>
    <pre>{dump |> jlog}</pre>
  </main>
);

useFetch('')
  |> readTextFormat
  |> map(dump => ({dump}))
  |> SelfDump
  |> portal;

Bonus: poipeline operator

.babelrc

{
  "plugins": [
    [ "@babel/plugin-proposal-pipeline-operator", {"proposal": "minimal"}],
    "@babel/plugin-syntax-jsx",    
    [ "@babel/plugin-transform-react-jsx", { "pragma": "fencer" }]    
  ]
}

- KIHAL -

Readme

Keywords

none

Package Sidebar

Install

npm i fencer

Weekly Downloads

4

Version

0.0.2

License

MIT

Unpacked Size

4.47 kB

Total Files

5

Last publish

Collaborators

  • pengeszikra