harmonium icon indicating copy to clipboard operation
harmonium copied to clipboard

Make `Pagination` component doc page examples be less awful

Open jwietelmann opened this issue 6 years ago • 2 comments

This looks like a holdover from the way we used to write examples, and I'm not even sure what all this React.createElement(...) class wrapping is about.

screen shot 2018-02-28 at 4 49 18 pm

jwietelmann avatar Feb 28 '18 21:02 jwietelmann

It's a combination of two things: (1) the playground widget requires you to give code that is one component (thus you can do <Whatever /> or you can do the non-JSX equivalent: React.createElement(Whatever, {...})-- this one just also defines the class inline (2) this example is showing how the pagination would be used (so we wrap the non-stateful thing with a thing that has state, for the sake of making it do something).

prehnRA avatar Feb 28 '18 21:02 prehnRA

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

revelry-stalebot[bot] avatar Apr 01 '19 20:04 revelry-stalebot[bot]