prometheusresearch-archive / react-forms

Forms library for React.
1.16k stars 112 forks source link

"Customizing label rendering" howto doesn't do anything. #163

Open dkrieger opened 7 years ago

dkrieger commented 7 years ago

Using the following does nothing. Furthermore, this doesn't appear to match the API of style (imported from react-stylesheet). Is this project (and/or react-stylesheet) abandoned?

Customizing label rendering:

import React from 'react'
import {style} from 'react-stylesheet'
import {Field as BaseField, Label as BaseLabel} from 'react-forms'

function Label({label, schema}) {
  return <BaseLabel className="my-label" label={label} schema={schema} />
}

let Field = style(BaseField, {
  Label: Label
})
andreypopp commented 7 years ago

Hi, you need react-stylesheet@^1.0.0 for that to work.

The package isn't abandoned.