react-af
react-af copied to clipboard
Import individual required feature
I love the idea of react-af, as I'm working on some components that I'd like to support broadly. However, in this case, I already know in advance what features I'm using (specifically, I want to use the new Context API sooooo bad). I don't really want all this extra code to support Fragments and modify method names and whatnot. I'm wondering if you'd be interested in an API that would allow this:
import createContext from 'react-af/createContext';
// or maybe:
import { createContext } from 'react-af';
So I could ensure I only bundle up the code that I need to make everything interop correctly.
Thoughts?
I like the idea. let me look into it. PRs welcome ;)