From 6b9830f4f15edaf379a95efcc9d9025e234f7574 Mon Sep 17 00:00:00 2001 From: Phil Pluckthun Date: Sun, 19 Jan 2020 20:01:46 +0000 Subject: [PATCH] Update README --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index def2cda..629d007 100644 --- a/README.md +++ b/README.md @@ -38,3 +38,12 @@ const prefix = (prop, value) => { return css; }; ``` + +Additionally `prefixValue` can accept full declarations to avoid +having to apply it before concatenation, which can be useful in case +you're trying to minimise string operations: + +```js +const declaration = 'position: sticky'; +prefixValue(declaration, declaration); // 'position: -webkit-sticky, sticky' +``` -- knotmirror 0.0.1