Obviously I'm no longer using local state as my state is now contained in a Redux container.
But for stateless components I simply pass down data they need using props.
I wanted to verify that this is O.K.?
Below is an example of a stateless component that receives data from it's parent and passes data down to it's child.
The parent element is using Redux. ( Not shown ).
Is there a good reference for this some where? i.e. documentation?
import React from 'react';
import FrameFaveTagFave from './FrameFaveTagFave.jsx';
const FrameFaveTag = function(props) {
const bookmarks = props.bookmarks.map((bookmark) =>
<FrameFaveTagFave bookmark={bookmark} key={bookmark.id} />
);
return (
<div className="bookmark_page" id="{props.tag}" >
<div className="bookmark_tag_title">
<p className="bookmark_tag_title_p">
{props.tag}
</p>
</div>
{bookmarks}
</div>
)
}
export default FrameFaveTag;