petitviolet blog

    typescript (2 posts)

    icon
    Written by petitviolet

    Getting Started with Panda CSS

    2023-10-15ReactTypeScript
    PandaCSS is a zero runtime CSS-in-JS library powered by Chakra. This post tries to give a getting started document with React.
    [Panda CSS](https://panda-css.com) is a zero runtime CSS-in-JS library powered by [Chakra](https://chakra-ui.com/). What "zero runtime" means is that Panda CSS statically analyze codes during preprocessing phase and then generates CSS which is not JavaScript. It's better in terms of performance an

    Merge sorted arrays with ordering in some manner in TypeScript

    2022-02-14TypeScript
    Arrays can be concatnated with Array#concat method but there is no built-in function to concatnating sorted arrays with giving a certain order
    In Rust, iterable objects have peek method to get the next value without advancing the iterator. [Peekable in std::iter - Rust](https://doc.rust-lang.org/stable/std/iter/struct.Peekable.html) This concept could be used to achieve the purpose. In merging 2 arrays with giving a certain order, peek