How to use the uikit-react.default function in uikit-react

To help you get started, we’ve selected a few uikit-react examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github stipsan / uikit-react / docs / client / components / Playground / ReactPlayground.js View on Github external
// Public imports, needed for ReactPlayground code samples to work

import * as modReact from 'react'
import * as modReactDOM from 'react-dom'
import * as modUIkitReact from 'uikit-react'

import babel from 'babel-core/browser'
import CodeMirror from 'codemirror'

const React = modReact.default
const ReactDOM = modReactDOM.default
const UIkitReact = modUIkitReact.default

// Private imports


// TODO actually recognize syntax of TypeScript constructs

CodeMirror.defineMode('javascript', function (config, parserConfig) {
  var indentUnit = config.indentUnit
  var jsonMode = parserConfig.json
  var isTS = parserConfig.typescript

  // Tokenizer

  var keywords = function () {
    function kw(type) { return { type: type, style: 'keyword' } }
    var A = kw('keyword a'), B = kw('keyword b'), C = kw('keyword c')

uikit-react

UIkit components for use in React.

ISC
Latest version published 3 years ago

Package Health Score

42 / 100
Full package analysis