Coding

Life of code.

Latest posts

Simple implementation of createElement

Just a nice and simple alternative implementation of React.createElement . var h = (function () { function deref(fn) { return Function.call.bind(fn); } var slice = deref(Array.prototype.slice); // Lodash code starts here var...

Convert JSON data to TypeScript interfaces

An useful tool to quick convert JSON data to TypeScript interfaces. All you need to do is to paste the data in and click 点我转换 ( Click to Convert ) , and is done! Example input: { "url": "https://jixun.moe/", "posts": [ { "title":...