UNPKG

react-conventions

Version:

An open source set of React components that implement Ambassador's Design and UX patterns.

12 lines (9 loc) 327 B
import React from 'react' import TextEditor from 'react-conventions/lib/TextEditor' const changeCallback = (event) => { console.log(event.target.value) } const ExampleTextEditorCallback = () => ( <TextEditor changeCallback={changeCallback} placeholder='I have a callback...' /> ) export default ExampleTextEditorCallback