sultan99 / react-on-lambda

A JavaScript library for building React applications in more functional way. Alternative to JSX.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

all Boxes have same props

marek-sed opened this issue · comments

Hey love the idea.
is this on purpose or a bug?

same props on all boxes

import r from "rol";
import s from "styled-components";
import { space, layout, color } from "styled-system";

const Box = r.div`${layout} ${space} ${color}`;

function Home() {
  return r.compose(
    r.section,
    Box({ m: 50, backgroundColor: "pink" }),
    r.compose(
      Box({ m: 0 }),
      Box({ color: "blue" }),
      Box({ pt: 100 })
    )
  )("hello world");
}```

Hi @marek-sed!
Thanks for reporting, I have checked it, looks like is a bug with styled-components.
Now I will try to fix it.

@marek-sed
The bug is fixed!

You can check it here online.

thank you awesome :)