react-tabulator icon indicating copy to clipboard operation
react-tabulator copied to clipboard

How does formatter works

Open jacky-ew opened this issue 5 years ago • 0 comments

Im using class component for the project

somehow the following code works fine

formatter: reactFormatter(
            <div>
              <Text>test</Text>
            </div>
          )

but when i do it this way, nothing was rendered

formatter: reactFormatter(props => {
            return (
              <div>
                <Text>test</Text>
              </div>
            );
          })

based on the demo, the code was written in function component style, but i dont want to do that way cause i might to access to the states as well during rendering.

any clarifications on this problem

jacky-ew avatar Oct 21 '20 00:10 jacky-ew