yarn init -y
yarn add -D @storybook/react babel-core && yarn add react react-dom
"scripts": { "storybook": "start-storybook -p 6006 -c .storybook" }
yarn init -y
yarn add -D @storybook/react babel-core && yarn add react react-dom
"scripts": { "storybook": "start-storybook -p 6006 -c .storybook" }
function astParse(a) { | |
const arr = a.split(',') | |
let ast = [] | |
let currentLevel = 0 | |
let currentNode = null | |
arr.forEach(tag => { | |
const taglevel = tag.search(/[^_]/) // gives how many underscores | |
const tagNode = { |